diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-08-11 21:13:44 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-08-11 21:13:44 +0200 |
commit | 25433ca87cb3fe3f02a1c4abe30b43fc48b4806c (patch) | |
tree | 95ed82f09ad9fb8c46c47549842013260df597c6 /src/plugins/help/helpviewer_qwv.cpp | |
parent | 1ff13868dc7566c1228d1ea01025b2c2f186cf45 (diff) | |
download | qt-creator-25433ca87cb3fe3f02a1c4abe30b43fc48b4806c.tar.gz |
Fix compilation with Intel CC: Q_UNUSED takes a reference
in qglobal.h, we make Q_UNUSED call a template function that takes T&
as a parameter. So we can't pass an rvalue (the result of the &&
operator).
Reviewed-By: Trust Me
Diffstat (limited to 'src/plugins/help/helpviewer_qwv.cpp')
-rw-r--r-- | src/plugins/help/helpviewer_qwv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/help/helpviewer_qwv.cpp b/src/plugins/help/helpviewer_qwv.cpp index 63e194f178..d47c02982d 100644 --- a/src/plugins/help/helpviewer_qwv.cpp +++ b/src/plugins/help/helpviewer_qwv.cpp @@ -341,7 +341,8 @@ bool HelpViewer::isBackwardAvailable() const bool HelpViewer::findText(const QString &text, Find::FindFlags flags, bool incremental, bool fromSearch) { - Q_UNUSED((incremental && fromSearch)) + Q_UNUSED(incremental); + Q_UNUSED(fromSearch); QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument; if (flags & Find::FindBackward) options |= QWebPage::FindBackward; |