[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdecore
From: Stephan Kulow <coolo () kde ! org>
Date: 2005-04-12 9:26:35
Message-ID: 20050412092635.8C0D062A () office ! kde ! org
[Download RAW message or body]
CVS commit by coolo:
David and I agree that there is no reason not to use kdWarning here (taking
that KDebug never saves)
BUG: 103683
M +8 -8 ktempfile.cpp 1.35
--- kdelibs/kdecore/ktempfile.cpp #1.34:1.35
@@ -55,5 +55,5 @@
#include "kstandarddirs.h"
#include "kde_file.h"
-
+#include "kdebug.h"
/* antlarr: KDE 4: make the parameters const QString & */
@@ -102,5 +102,5 @@ KTempFile::create(const QString &filePre
// Recreate it for the warning, mkstemps emptied it
QCString nme = QFile::encodeName(filePrefix) + "XXXXXX" + ext;
- qWarning("KTempFile: Error trying to create %s: %s", nme.data(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to create " << nme \
<< ": " << strerror(errno) << endl; mError = errno;
mTmpName = QString::null;
@@ -161,5 +161,5 @@ KTempFile::fstream()
mStream = KDE_fdopen(mFd, "r+");
if (!mStream) {
- qWarning("KTempFile: Error trying to open %s: %s", mTmpName.latin1(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to open " << mTmpName \
<< ": " << strerror(errno) << endl; mError = errno;
}
@@ -227,5 +227,5 @@ KTempFile::sync()
if (result)
{
- qWarning("KTempFile: Error trying to flush %s: %s", mTmpName.latin1(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to flush " << \
mTmpName << ": " << strerror(errno) << endl; mError = errno;
}
@@ -237,5 +237,5 @@ KTempFile::sync()
if (result)
{
- qWarning("KTempFile: Error trying to sync %s: %s", mTmpName.latin1(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to sync " << \
mTmpName << ": " << strerror(errno) << endl; mError = errno;
}
@@ -265,5 +265,5 @@ KTempFile::close()
mFd = -1;
if (result != 0) {
- qWarning("KTempFile: Error trying to close %s: %s", mTmpName.latin1(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to close " << \
mTmpName << ": " << strerror(errno) << endl; mError = errno;
}
@@ -276,5 +276,5 @@ KTempFile::close()
mFd = -1;
if (result != 0) {
- qWarning("KTempFile: Error trying to close %s: %s", mTmpName.latin1(), \
strerror(errno)); + kdWarning() << "KTempFile: Error trying to close " << \
mTmpName << ": " << strerror(errno) << endl; mError = errno;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic