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
This commit is contained in:
Thiago Macieira
2010-08-11 21:13:44 +02:00
parent 1ff13868dc
commit 25433ca87c

View File

@@ -341,7 +341,8 @@ bool HelpViewer::isBackwardAvailable() const
bool HelpViewer::findText(const QString &text, Find::FindFlags flags, bool HelpViewer::findText(const QString &text, Find::FindFlags flags,
bool incremental, bool fromSearch) bool incremental, bool fromSearch)
{ {
Q_UNUSED((incremental && fromSearch)) Q_UNUSED(incremental);
Q_UNUSED(fromSearch);
QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument; QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument;
if (flags & Find::FindBackward) if (flags & Find::FindBackward)
options |= QWebPage::FindBackward; options |= QWebPage::FindBackward;