summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylefactory.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-09-03 16:56:48 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-08 13:36:24 +0200
commit7ed5f3b867db5eb5b0bd6dc49828e0e6931b60f9 (patch)
tree895e46ec3c1ef83070843500cc3a791761727d20 /src/widgets/styles/qstylefactory.cpp
parent6a3a234742e4f186dd065e48cb013036d5f7a621 (diff)
don't use QT_{BEGIN,END}_INCLUDE_NAMESPACE needlessly
these macros behave counter-intuitively, so don't use them unless the code structure really suggests their use. Change-Id: I58213b39f8a98e4368901217fac14ca49c28b8cf Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/widgets/styles/qstylefactory.cpp')
-rw-r--r--src/widgets/styles/qstylefactory.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/styles/qstylefactory.cpp b/src/widgets/styles/qstylefactory.cpp
index a49f6dcdf1..b981c92505 100644
--- a/src/widgets/styles/qstylefactory.cpp
+++ b/src/widgets/styles/qstylefactory.cpp
@@ -70,14 +70,12 @@
#include "qwindowsmobilestyle.h"
#endif
-QT_BEGIN_NAMESPACE
-
#if !defined(QT_NO_STYLE_MAC) && defined(Q_OS_MAC)
-QT_BEGIN_INCLUDE_NAMESPACE
# include "qmacstyle_mac.h"
-QT_END_INCLUDE_NAMESPACE
#endif
+QT_BEGIN_NAMESPACE
+
#ifndef QT_NO_LIBRARY
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
(QStyleFactoryInterface_iid, QLatin1String("/styles"), Qt::CaseInsensitive))