From 25433ca87cb3fe3f02a1c4abe30b43fc48b4806c Mon Sep 17 00:00:00 2001
From: Thiago Macieira <thiago.macieira@nokia.com>
Date: Wed, 11 Aug 2010 21:13:44 +0200
Subject: [PATCH] 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
---
 src/plugins/help/helpviewer_qwv.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/help/helpviewer_qwv.cpp b/src/plugins/help/helpviewer_qwv.cpp
index 63e194f178a..d47c02982dd 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;
-- 
GitLab