summaryrefslogtreecommitdiffstats
path: root/kget/tdefileio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/tdefileio.cpp')
-rw-r--r--kget/tdefileio.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kget/tdefileio.cpp b/kget/tdefileio.cpp
index ed9ef955..4ecb544a 100644
--- a/kget/tdefileio.cpp
+++ b/kget/tdefileio.cpp
@@ -111,7 +111,7 @@ static bool kBytesToFile(const char *aBuffer, int len, const TQString & aFileNam
rc = KMessageBox::questionYesNo(tqApp->mainWidget(), str, TQString(), i18n("Replace"),KStdGuiItem::cancel());
if (rc != KMessageBox::Yes)
- return FALSE;
+ return false;
}
if (aBackup) {
// make a backup copy
@@ -123,10 +123,10 @@ static bool kBytesToFile(const char *aBuffer, int len, const TQString & aFileNam
if (rc) {
// failed to rename file
if (!aVerbose)
- return FALSE;
+ return false;
rc = KMessageBox::warningContinueCancel(tqApp->mainWidget(), i18n("Failed to make a backup copy of %1.\nContinue anyway?").arg(aFileName));
if (rc != KMessageBox::Continue)
- return FALSE;
+ return false;
}
}
}
@@ -143,24 +143,24 @@ static bool kBytesToFile(const char *aBuffer, int len, const TQString & aFileNam
default:
KMessageBox::error(tqApp->mainWidget(), i18n("Error while writing file:\n%1").arg(aFileName));
}
- return FALSE;
+ return false;
}
writeLen = file.writeBlock(aBuffer, len);
if (writeLen < 0) {
KMessageBox::error(tqApp->mainWidget(), i18n("Could not write to file:\n%1").arg(aFileName));
- return FALSE;
+ return false;
} else if (writeLen < len) {
TQString msg = i18n("Could only write %1 bytes of %2.").arg(TDEGlobal::locale()->formatNumber(writeLen,
0)).arg(TDEGlobal::locale()->formatNumber(len,
0));
KMessageBox::error(tqApp->mainWidget(), msg);
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
bool kCStringToFile(const TQCString & aBuffer, const TQString & aFileName, bool aAskIfExists, bool aBackup, bool aVerbose)