Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
1 deleted
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/shared/windows/registry.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4141
    4242#include <QtCore/qstringlist.h>
    43 #include "registry.h"
     43#include "registry_p.h"
    4444
     45QT_BEGIN_NAMESPACE
     46
     47#ifdef Q_OS_WIN32
    4548/*!
    4649  Returns the path part of a registry key.
     
    7477
    7578    QString res(rKey.mid(idx + 1));
    76     if (res == "Default" || res == ".")
    77         res = "";
     79    if (res == QLatin1String("Default") || res == QLatin1String("."))
     80        res = QString();
    7881    return res;
    7982}
     83#endif
    8084
    81 QString readRegistryKey(HKEY parentHandle, const QString &rSubkey)
     85QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey)
    8286{
    8387    QString result;
     
    129133                l.append(s);
    130134            }
    131             result = l.join(", ");
     135            result = l.join(QLatin1String(", "));
    132136            break;
    133137        }
     
    149153
    150154        default:
    151             qWarning("QSettings: unknown data %d type in windows registry", dataType);
     155            qWarning("QSettings: unknown data %u type in windows registry", quint32(dataType));
    152156            break;
    153157    }
    154158
    155159    RegCloseKey(handle);
     160#else
     161    Q_UNUSED(parentHandle);
     162    Q_UNUSED(rSubkey)
    156163#endif
    157164
     
    159166}
    160167
     168QT_END_NAMESPACE
    161169
Note: See TracChangeset for help on using the changeset viewer.