[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/config
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2010-09-11 12:08:06
Message-ID: 20100911120806.734C5AC888 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1174158 by aacid:
QFile::exists(const QString &fileName) does return QFileInfo(fileName).exists(); so \
this is an optimization for the upper if branch
M +1 -1 kconfigini.cpp
--- trunk/KDE/kdelibs/kdecore/config/kconfigini.cpp #1174157:1174158
@@ -536,8 +536,8 @@
Q_ASSERT(QDir::isAbsolutePath(file));
- if (QFile::exists(file)) {
const QFileInfo info(file);
+ if (info.exists()) {
setLocalFilePath(info.canonicalFilePath());
setLastModified(info.lastModified());
setSize(info.size());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic