diff options
author | axis <qt-info@nokia.com> | 2009-07-06 07:23:40 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-07-06 07:43:45 (GMT) |
commit | ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b (patch) | |
tree | cd43225283969334fe3e8aabb9efb453aa25d4a0 /src/corelib | |
parent | 6725d82984107997fd865b2158b7f51931653a71 (diff) | |
download | Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.zip Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.tar.gz Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.tar.bz2 |
Removed pointless variables to silence warnings from RVCT.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qresource.cpp | 4 | ||||
-rw-r--r-- | src/corelib/kernel/qsharedmemory_symbian.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 158147b..29bbe4c 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -263,9 +263,8 @@ QResourcePrivate::ensureInitialized() const if(path.startsWith(QLatin1Char(':'))) path = path.mid(1); - bool found = false; if(path.startsWith(QLatin1Char('/'))) { - found = that->load(path); + that->load(path); } else { QMutexLocker lock(resourceMutex()); QStringList searchPaths = *resourceSearchPaths(); @@ -273,7 +272,6 @@ QResourcePrivate::ensureInitialized() const for(int i = 0; i < searchPaths.size(); ++i) { const QString searchPath(searchPaths.at(i) + QLatin1Char('/') + path); if(that->load(searchPath)) { - found = true; that->absoluteFilePath = QLatin1Char(':') + searchPath; break; } diff --git a/src/corelib/kernel/qsharedmemory_symbian.cpp b/src/corelib/kernel/qsharedmemory_symbian.cpp index d05f9f3..f564391 100644 --- a/src/corelib/kernel/qsharedmemory_symbian.cpp +++ b/src/corelib/kernel/qsharedmemory_symbian.cpp @@ -134,8 +134,6 @@ bool QSharedMemoryPrivate::create(int size) bool QSharedMemoryPrivate::attach(QSharedMemory::AccessMode mode) { // Grab a pointer to the memory block - TBool readOnly = (mode == QSharedMemory::ReadOnly ? true : false); - if (!chunk.Handle()) { QString function = QLatin1String("QSharedMemory::handle"); QString safeKey = makePlatformSafeKey(key); |