Merge lp://qastaging/~ubuntu-sdk-team/ubuntu-ui-toolkit/contextPropertyWindowQStringLiteral into lp://qastaging/ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Tim Peeters
Approved revision: 2134
Merged at revision: 2134
Proposed branch: lp://qastaging/~ubuntu-sdk-team/ubuntu-ui-toolkit/contextPropertyWindowQStringLiteral
Merge into: lp://qastaging/ubuntu-ui-toolkit/staging
Diff against target: 12 lines (+1/-1)
1 file modified
src/UbuntuToolkit/ubuntutoolkitmodule.cpp (+1/-1)
To merge this branch: bzr merge lp://qastaging/~ubuntu-sdk-team/ubuntu-ui-toolkit/contextPropertyWindowQStringLiteral
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Tim Peeters Pending
Review via email: mp+307154@code.qastaging.launchpad.net

Commit message

Fix warning about using implicit char* to QString conversion

Description of the change

This fixes a missing QStringLiteral macro around the "window" context property.

ubuntutoolkitmodule.cpp: In static member function 'static void UbuntuToolkitModule::initializeContextProperties(QQmlEngine*)':
ubuntutoolkitmodule.cpp:197:52: warning: 'QString::QString(const char*)' is deprecated [-Wdeprecated-declarations]
     context->setContextProperty("window", Q_NULLPTR);
                                                    ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:41:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from ../../include/UbuntuToolkit/UbuntuToolkitDepends:3:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:654:31: note: declared here
     inline QT_ASCII_CAST_WARN QString(const char *ch)

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches