summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-11-26 17:41:07 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-26 21:02:18 (GMT)
commitdc23fd546163edb7ff4395f44217b5cb2600004a (patch)
tree37f494c22bf86888424b195bc2e6ef9d68529b0e /src/gui/styles
parentb284975435f80eba7bf6d1edd21987dcee134e86 (diff)
downloadQt-dc23fd546163edb7ff4395f44217b5cb2600004a.zip
Qt-dc23fd546163edb7ff4395f44217b5cb2600004a.tar.gz
Qt-dc23fd546163edb7ff4395f44217b5cb2600004a.tar.bz2
Fix warnings related to unused variables.
Just add some Q_UNUSED for parameters or remove the variable we don't need for the others. Reviewed-by: Trust Me
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qstyle.cpp2
-rw-r--r--src/gui/styles/qstyleoption.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/styles/qstyle.cpp b/src/gui/styles/qstyle.cpp
index 3ebfab2..be8f794 100644
--- a/src/gui/styles/qstyle.cpp
+++ b/src/gui/styles/qstyle.cpp
@@ -2456,6 +2456,8 @@ QDebug operator<<(QDebug debug, QStyle::State state)
qSort(states);
debug << states.join(QLatin1String(" | "));
debug << ')';
+#else
+ Q_UNUSED(state);
#endif
return debug;
}
diff --git a/src/gui/styles/qstyleoption.cpp b/src/gui/styles/qstyleoption.cpp
index 4780edf..05ca793 100644
--- a/src/gui/styles/qstyleoption.cpp
+++ b/src/gui/styles/qstyleoption.cpp
@@ -5483,6 +5483,8 @@ QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
case QStyleOption::SO_GraphicsItem:
debug << "SO_GraphicsItem"; break;
}
+#else
+ Q_UNUSED(optionType);
#endif
return debug;
}
@@ -5496,6 +5498,8 @@ QDebug operator<<(QDebug debug, const QStyleOption &option)
debug << ',' << option.state;
debug << ',' << option.rect;
debug << ')';
+#else
+ Q_UNUSED(option);
#endif
return debug;
}