Skip to content

Fix deprecation warning#3

Open
Nicals wants to merge 3 commits intododubassman:mainfrom
Nicals:fix_deprecation_warning
Open

Fix deprecation warning#3
Nicals wants to merge 3 commits intododubassman:mainfrom
Nicals:fix_deprecation_warning

Conversation

@Nicals
Copy link

@Nicals Nicals commented Jul 10, 2022

Had this warning when compiling:

src/xplaneudpclient.cpp:87:28: warning: ‘QByteArray& QByteArray::append(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Wdeprecated-declarations]
   87 |         data.append(dataRef)

It seems that the data QByteArray only contains ASCII chars, so converting the original QString to the local 8bit representation should be good.

I'm done for now, have fun :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant