summaryrefslogtreecommitdiffstats
path: root/tools/spell/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 18:11:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 10:36:14 +0900
commitcf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (patch)
tree868514a6f6939c71ee95754268a4b850fa60c5a5 /tools/spell/main.cpp
parenta6b8cc41e27c15bb670aa7c0c0464b6eb44099e9 (diff)
downloadkoffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.tar.gz
koffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/spell/main.cpp')
-rw-r--r--tools/spell/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/spell/main.cpp b/tools/spell/main.cpp
index 4dc980d80..c37ac3632 100644
--- a/tools/spell/main.cpp
+++ b/tools/spell/main.cpp
@@ -56,20 +56,20 @@ bool SpellChecker::run( const TQString& command, void* data, const TQString& dat
{
kdDebug(31000) << "SpellChecker does only accept the command 'spellcheck'" << endl;
kdDebug(31000) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "TQString" )
{
kdDebug(31000) << "SpellChecker only accepts datatype TQString" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "text/plain" && mimetype != "application/x-singleword" )
{
kdDebug(31000) << "SpellChecker only accepts mimetype text/plain and application/x-singleword" << endl;
- return FALSE;
+ return false;
}
// Get data
@@ -91,13 +91,13 @@ bool SpellChecker::run( const TQString& command, void* data, const TQString& dat
kosconfig.setNoRootAffix(config->readNumEntry ("KSpell_NoRootAffix", 0));
kosconfig.setRunTogether(config->readNumEntry ("KSpell_RunTogether", 0));
kosconfig.setDictionary(config->readEntry ("KSpell_Dictionary", ""));
- kosconfig.setDictFromList(config->readNumEntry ("KSpell_DictFromList", FALSE));
+ kosconfig.setDictFromList(config->readNumEntry ("KSpell_DictFromList", false));
kosconfig.setEncoding(config->readNumEntry ("KSpell_Encoding", KOS_E_ASCII));
kosconfig.setClient(config->readNumEntry ("KSpell_Client", KOS_CLIENT_ISPELL));
kosconfig.setNoRootAffix(config->readNumEntry ("KSpell_NoRootAffix", 0));
kosconfig.setRunTogether(config->readNumEntry ("KSpell_RunTogether", 0));
kosconfig.setDictionary(config->readEntry ("KSpell_Dictionary", ""));
- kosconfig.setDictFromList(config->readNumEntry ("KSpell_DictFromList", FALSE));
+ kosconfig.setDictFromList(config->readNumEntry ("KSpell_DictFromList", false));
kosconfig.setIgnoreCase( config->readNumEntry( "KSpell_IgnoreCase", 0));
kosconfig.setIgnoreAccent( config->readNumEntry( "KSpell_IgnoreAccent", 0));
@@ -131,7 +131,7 @@ bool SpellChecker::run( const TQString& command, void* data, const TQString& dat
*((TQString*)data) = buffer;
}
#endif
- return TRUE;
+ return true;
}
#include "main.moc"