summaryrefslogtreecommitdiffstats
path: root/tools/shared/windows
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-11-19 12:53:29 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-11-19 13:35:00 (GMT)
commit4b380543cc973d575a3ed0c77918adbe5b6133f0 (patch)
treed7f618d55549f46a9b9bbb974d2ee7ad7a838183 /tools/shared/windows
parent45ffd89f55a7769c66f6cf15e54994a264012f05 (diff)
downloadQt-4b380543cc973d575a3ed0c77918adbe5b6133f0.zip
Qt-4b380543cc973d575a3ed0c77918adbe5b6133f0.tar.gz
Qt-4b380543cc973d575a3ed0c77918adbe5b6133f0.tar.bz2
Fixed namespace issues related to epocroot.cpp
Task-number: QTBUG-15393 Reviewed-by: axis
Diffstat (limited to 'tools/shared/windows')
-rw-r--r--tools/shared/windows/registry.cpp7
-rw-r--r--tools/shared/windows/registry_p.h (renamed from tools/shared/windows/registry.h)24
2 files changed, 25 insertions, 6 deletions
diff --git a/tools/shared/windows/registry.cpp b/tools/shared/windows/registry.cpp
index 2373839..48e9ae6 100644
--- a/tools/shared/windows/registry.cpp
+++ b/tools/shared/windows/registry.cpp
@@ -40,7 +40,9 @@
****************************************************************************/
#include <QtCore/qstringlist.h>
-#include "registry.h"
+#include "registry_p.h"
+
+QT_BEGIN_NAMESPACE
#ifdef Q_OS_WIN32
/*!
@@ -80,7 +82,7 @@ static QString keyName(const QString &rKey)
}
#endif
-QString readRegistryKey(HKEY parentHandle, const QString &rSubkey)
+QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey)
{
QString result;
@@ -160,4 +162,5 @@ QString readRegistryKey(HKEY parentHandle, const QString &rSubkey)
return result;
}
+QT_END_NAMESPACE
diff --git a/tools/shared/windows/registry.h b/tools/shared/windows/registry_p.h
index 3896527..4aae5f9 100644
--- a/tools/shared/windows/registry.h
+++ b/tools/shared/windows/registry_p.h
@@ -39,8 +39,21 @@
**
****************************************************************************/
-#ifndef WINDOWS_REGISTRY_H
-#define WINDOWS_REGISTRY_H
+#ifndef QT_WINDOWS_REGISTRY_H
+#define QT_WINDOWS_REGISTRY_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+QT_BEGIN_NAMESPACE
#include <QtCore/qglobal.h>
@@ -59,6 +72,9 @@
* if this code is compiled for a platform other than Windows), a null
* string is returned.
*/
-QString readRegistryKey(HKEY parentHandle, const QString &rSubkey);
+QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey);
+
+QT_END_NAMESPACE
+
+#endif // QT_WINDOWS_REGISTRY_H
-#endif // WINDOWS_REGISTRY_H