summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-09-09 07:52:38 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-09-09 07:52:38 (GMT)
commit85881f83c34cbb92e5d2ea61d16daef1f34fcad8 (patch)
treeb887fb6be925fdfeacfff60d866b5b059db90f4a
parent53a7b52a89f73498407921dfe1f2821328fdafbf (diff)
downloadQt-85881f83c34cbb92e5d2ea61d16daef1f34fcad8.zip
Qt-85881f83c34cbb92e5d2ea61d16daef1f34fcad8.tar.gz
Qt-85881f83c34cbb92e5d2ea61d16daef1f34fcad8.tar.bz2
Fixed 'use of function XXX is deprecated' warning reported by RVCT.
Task-number: 241223
-rw-r--r--src/gui/styles/qs60style_s60.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp
index 6418941..97d6585 100644
--- a/src/gui/styles/qs60style_s60.cpp
+++ b/src/gui/styles/qs60style_s60.cpp
@@ -1016,7 +1016,7 @@ QS60StylePrivate::QS60StylePrivate()
void QS60StylePrivate::setStyleProperty_specific(const char *name, const QVariant &value)
{
- if (name == QLatin1String("foo")) {
+ if (QLatin1String(name) == QLatin1String("foo")) {
// BaR
} else {
setStyleProperty(name, value);
@@ -1025,7 +1025,7 @@ void QS60StylePrivate::setStyleProperty_specific(const char *name, const QVarian
QVariant QS60StylePrivate::styleProperty_specific(const char *name) const
{
- if (name == QLatin1String("foo"))
+ if (QLatin1String(name) == QLatin1String("foo"))
return QLatin1String("Bar");
else
return styleProperty(name);