summaryrefslogtreecommitdiffstats
path: root/libtdepim/tdefileio.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-27 16:55:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-29 22:58:05 +0900
commita88d4d648a4ae2d7d7abd23916b49b41c1a867f3 (patch)
tree73aacc657e135ab179010d102fdbd7a0a9edc40d /libtdepim/tdefileio.cpp
parent409b67ac0559a06dc58da81fc90f0ba959d6068c (diff)
downloadtdepim-a88d4d64.tar.gz
tdepim-a88d4d64.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 8f878546e0a859e78dfc2c6ff7f08507347a76ea)
Diffstat (limited to 'libtdepim/tdefileio.cpp')
-rw-r--r--libtdepim/tdefileio.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libtdepim/tdefileio.cpp b/libtdepim/tdefileio.cpp
index ce2e8068..7e423dc0 100644
--- a/libtdepim/tdefileio.cpp
+++ b/libtdepim/tdefileio.cpp
@@ -183,7 +183,7 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
//assert(aFileName!=0);
if(aFileName.isEmpty())
- return FALSE;
+ return false;
if (file.exists())
{
@@ -194,7 +194,7 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
.arg(aFileName);
rc = KMessageBox::warningContinueCancel(0,
str, i18n("Save to File"), i18n("&Replace"));
- if (rc != KMessageBox::Continue) return FALSE;
+ if (rc != KMessageBox::Continue) return false;
}
if (aBackup)
{
@@ -206,12 +206,12 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
if( !TQDir::current().rename(aFileName, bakName) )
{
// failed to rename file
- if (!aVerbose) return FALSE;
+ if (!aVerbose) return false;
rc = KMessageBox::warningContinueCancel(0,
i18n("Failed to make a backup copy of %1.\nContinue anyway?")
.arg(aFileName),
i18n("Save to File"), KStdGuiItem::save() );
- if (rc != KMessageBox::Continue) return FALSE;
+ if (rc != KMessageBox::Continue) return false;
}
}
}
@@ -230,7 +230,7 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
default:
msgDialog(i18n("Error while writing file:\n%1").arg(aFileName));
}
- return FALSE;
+ return false;
}
writeLen = file.writeBlock(aBuffer, len);
@@ -239,7 +239,7 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
{
if (aVerbose)
msgDialog(i18n("Could not write to file:\n%1").arg(aFileName));
- return FALSE;
+ return false;
}
else if (writeLen < len)
{
@@ -247,10 +247,10 @@ TDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
.arg(writeLen).arg(len);
if (aVerbose)
msgDialog(msg);
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
TDE_EXPORT bool kCStringToFile(const TQCString& aBuffer, const TQString &aFileName,