diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/spell/main.cpp | 12 | ||||
-rw-r--r-- | tools/thesaurus/main.cpp | 8 |
2 files changed, 10 insertions, 10 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" diff --git a/tools/thesaurus/main.cpp b/tools/thesaurus/main.cpp index 622314c5b..73de57eed 100644 --- a/tools/thesaurus/main.cpp +++ b/tools/thesaurus/main.cpp @@ -238,11 +238,11 @@ bool Thesaurus::run(const TQString& command, void* data, const TQString& datatyp // Check whether we can accept the data if ( datatype != "TQString" ) { kdDebug(31000) << "Thesaurus only accepts datatype TQString" << endl; - return FALSE; + return false; } if ( mimetype != "text/plain" ) { kdDebug(31000) << "Thesaurus only accepts mimetype text/plain" << endl; - return FALSE; + return false; } if ( command == "thesaurus" ) { @@ -260,7 +260,7 @@ bool Thesaurus::run(const TQString& command, void* data, const TQString& datatyp } else { kdDebug(31000) << "Thesaurus does only accept the command 'thesaurus' or 'thesaurus_standalone'" << endl; kdDebug(31000) << "The command " << command << " is not accepted" << endl; - return FALSE; + return false; } // Get data and clean it up: @@ -284,7 +284,7 @@ bool Thesaurus::run(const TQString& command, void* data, const TQString& datatyp *((TQString*)data) = m_replace->text(); } - return TRUE; + return true; } |