summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths_blackberry.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-08-08 17:56:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-09 13:48:16 +0200
commit977441f61cc42b7f29e48980577105323fbd3b47 (patch)
treecba6cd58b3bbda03de0266fe3f903dbaa0be5ac2 /src/corelib/io/qstandardpaths_blackberry.cpp
parenta23da5fd6bca918366cfe744270e590905e97412 (diff)
Remove code duplication in QStandardPaths implementations
Using the new getter to access the "test mode" setting. Change-Id: Id26a350cd3fab4bf2e5f58ba67bc7323f99c9cc3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_blackberry.cpp')
-rw-r--r--src/corelib/io/qstandardpaths_blackberry.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/corelib/io/qstandardpaths_blackberry.cpp b/src/corelib/io/qstandardpaths_blackberry.cpp
index 34948a7927..983173b66a 100644
--- a/src/corelib/io/qstandardpaths_blackberry.cpp
+++ b/src/corelib/io/qstandardpaths_blackberry.cpp
@@ -48,20 +48,8 @@
QT_BEGIN_NAMESPACE
-static bool qsp_testMode = false;
-
-void QStandardPaths::enableTestMode(bool testMode)
-{
- qsp_testMode = testMode;
-}
-
-bool QStandardPaths::isTestModeEnabled()
-{
- return qsp_testMode;
-}
-
static QString testModeInsert() {
- if (qsp_testMode)
+ if (QStandardPaths::isTestModeEnabled())
return QStringLiteral("/.qttest");
else
return QStringLiteral("");