Changeset 846 for trunk/tools/shared/windows
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/shared/windows/registry.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 41 41 42 42 #include <QtCore/qstringlist.h> 43 #include "registry .h"43 #include "registry_p.h" 44 44 45 QT_BEGIN_NAMESPACE 46 47 #ifdef Q_OS_WIN32 45 48 /*! 46 49 Returns the path part of a registry key. … … 74 77 75 78 QString res(rKey.mid(idx + 1)); 76 if (res == "Default" || res == ".")77 res = "";79 if (res == QLatin1String("Default") || res == QLatin1String(".")) 80 res = QString(); 78 81 return res; 79 82 } 83 #endif 80 84 81 QString readRegistryKey(HKEY parentHandle, const QString &rSubkey)85 QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey) 82 86 { 83 87 QString result; … … 129 133 l.append(s); 130 134 } 131 result = l.join( ", ");135 result = l.join(QLatin1String(", ")); 132 136 break; 133 137 } … … 149 153 150 154 default: 151 qWarning("QSettings: unknown data % d type in windows registry", dataType);155 qWarning("QSettings: unknown data %u type in windows registry", quint32(dataType)); 152 156 break; 153 157 } 154 158 155 159 RegCloseKey(handle); 160 #else 161 Q_UNUSED(parentHandle); 162 Q_UNUSED(rSubkey) 156 163 #endif 157 164 … … 159 166 } 160 167 168 QT_END_NAMESPACE 161 169
Note:
See TracChangeset
for help on using the changeset viewer.