diff options
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/kdebug.cpp | 4 | ||||
-rw-r--r-- | tdecore/kiconeffect.cpp | 4 | ||||
-rw-r--r-- | tdecore/kinstance.h | 4 | ||||
-rw-r--r-- | tdecore/ksock.h | 2 | ||||
-rw-r--r-- | tdecore/tde-config.cpp.in | 2 | ||||
-rw-r--r-- | tdecore/tdeaccelmanager.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdeapplication.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdeapplication.h | 2 | ||||
-rw-r--r-- | tdecore/tests/kmdcodectest.cpp | 2 | ||||
-rw-r--r-- | tdecore/tests/ksocktest.cpp | 6 | ||||
-rw-r--r-- | tdecore/tests/kurltest.cpp | 30 |
11 files changed, 30 insertions, 30 deletions
diff --git a/tdecore/kdebug.cpp b/tdecore/kdebug.cpp index 46dac11d8..43b50880d 100644 --- a/tdecore/kdebug.cpp +++ b/tdecore/kdebug.cpp @@ -626,7 +626,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) { long symCount; // count of entries in symbol table long symtab_sz; // size of the table asymbol** rv; - bfd_boolean dynamic = FALSE; + bool dynamic = false; // make shure the file has symbol table if ((bfd_get_file_flags (abfd) & HAS_SYMS) == 0){ @@ -637,7 +637,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) { symtab_sz = bfd_get_symtab_upper_bound (abfd); if (symtab_sz == 0) { symtab_sz = bfd_get_dynamic_symtab_upper_bound (abfd); - dynamic = TRUE; + dynamic = true; } if (symtab_sz < 0) { return 0; diff --git a/tdecore/kiconeffect.cpp b/tdecore/kiconeffect.cpp index a5cb4bcae..cd6b9bad7 100644 --- a/tdecore/kiconeffect.cpp +++ b/tdecore/kiconeffect.cpp @@ -846,13 +846,13 @@ TDEIconEffect::visualActivate(TQWidget * widget, TQRect rect, TQPixmap *pixmap) if ((widget->rect().width() <= maxRect.width()) || (widget->rect().height() <= maxRect.height())) { -// p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place. +// p = new TQPainter(TQApplication::desktop()->screen( -1 ), true); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place. pix = TQPixmap::grabWindow((TQApplication::desktop()->screen( -1 ))->winId(), maxRect.x(), maxRect.y(), maxRect.width(), maxRect.height()); - p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE); + p = new TQPainter(TQApplication::desktop()->screen( -1 ), true); } else { // not as ugly as drawing directly to the screen diff --git a/tdecore/kinstance.h b/tdecore/kinstance.h index e0fdf73de..b46947218 100644 --- a/tdecore/kinstance.h +++ b/tdecore/kinstance.h @@ -101,8 +101,8 @@ class TDECORE_EXPORT TDEInstance /** * Set a read-only flag on the configuration files * This must be called before config() or dirs() to have any effect - * Defaults to FALSE - * @param ro read only if TRUE + * Defaults to false + * @param ro read only if true */ void setConfigReadOnly(bool ro); diff --git a/tdecore/ksock.h b/tdecore/ksock.h index f562ece8f..98b157dc4 100644 --- a/tdecore/ksock.h +++ b/tdecore/ksock.h @@ -280,7 +280,7 @@ public: * On error the socket will be closed. * @param suppressFailureMessages suppress warning messages generated if the socket cannot be opened. * @return true on success. false on error. - * @warning If suppressFailureMessages is TRUE future debugging may be made more difficult. Only set it + * @warning If suppressFailureMessages is true future debugging may be made more difficult. Only set it * if your application expects to bind to unavailable ports, e.g. while scanning for open ports in a range. */ bool bindAndListen(bool suppressFailureMessages = false); diff --git a/tdecore/tde-config.cpp.in b/tdecore/tde-config.cpp.in index 2373a7a13..9ef991b41 100644 --- a/tdecore/tde-config.cpp.in +++ b/tdecore/tde-config.cpp.in @@ -118,7 +118,7 @@ int main(int argc, char **argv) TDECmdLineArgs::addCmdLineOptions( options ); // Add my own options. TDEInstance a("tde-config"); - a.setConfigReadOnly(TRUE); + a.setConfigReadOnly(true); (void)TDEGlobal::dirs(); // trigger the creation (void)TDEGlobal::config(); diff --git a/tdecore/tdeaccelmanager.cpp b/tdecore/tdeaccelmanager.cpp index ea0b034fd..3cc7eb22e 100644 --- a/tdecore/tdeaccelmanager.cpp +++ b/tdecore/tdeaccelmanager.cpp @@ -626,7 +626,7 @@ int TDEAccelString::maxWeight(int &index, const TQString &used) index = -1; for (uint pos=0; pos<m_pureText.length(); ++pos) - if (used.find(m_pureText[pos], 0, FALSE) == -1 && m_pureText[pos].latin1() != 0) + if (used.find(m_pureText[pos], 0, false) == -1 && m_pureText[pos].latin1() != 0) if (m_weight[pos] > max) { max = m_weight[pos]; diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp index fb11f90d4..bd410e4d5 100644 --- a/tdecore/tdeapplication.cpp +++ b/tdecore/tdeapplication.cpp @@ -2524,7 +2524,7 @@ void TDEApplication::tdedisplaySetPalette() { TDEConfig *config = TDEGlobal::config(); TDEConfigGroupSaver saver( config, "General" ); - bool do_not_set_palette = FALSE; + bool do_not_set_palette = false; if(config->readBoolEntry("nopaletteChange", &do_not_set_palette)) return; } diff --git a/tdecore/tdeapplication.h b/tdecore/tdeapplication.h index 0383e757e..14f63e048 100644 --- a/tdecore/tdeapplication.h +++ b/tdecore/tdeapplication.h @@ -962,7 +962,7 @@ public: * Note that calling this method will probably cause the screen to flicker. * @see isCompositionManagerAvailable() * @param force_available If set, force TDE to assume a composition manager is available - * @param available Whether or not the composition manager is available (only used if force_available is TRUE) + * @param available Whether or not the composition manager is available (only used if force_available is true) * @return whether the composition manager is enabled */ bool detectCompositionManagerAvailable(bool force_available=false, bool available=true); diff --git a/tdecore/tests/kmdcodectest.cpp b/tdecore/tests/kmdcodectest.cpp index 571d3f10b..4cc06813d 100644 --- a/tdecore/tests/kmdcodectest.cpp +++ b/tdecore/tests/kmdcodectest.cpp @@ -268,7 +268,7 @@ void MD5_verify( const char *input, const char *digest, bool isFile ) cout << "Calculated Digest = " << context.hexDigest() << endl; cout << "Supplied Digest = " << digest << endl; - cout << "Matches: " << (result ? "TRUE":"FALSE") << endl; + cout << "Matches: " << (result ? "true":"false") << endl; } void MD5_file (const char *filename, bool rawOutput ) diff --git a/tdecore/tests/ksocktest.cpp b/tdecore/tests/ksocktest.cpp index ac0bf5510..ec9c1ec95 100644 --- a/tdecore/tests/ksocktest.cpp +++ b/tdecore/tests/ksocktest.cpp @@ -103,7 +103,7 @@ main(int argc, char *argv[]) TDESocketAddress* addr = KExtendedSocket::peerAddress( sock2->fd() ); check( "peerAddress:", addr->nodeName().latin1(), "213.203.58.36" ); - check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "TRUE" : "FALSE", "TRUE"); - check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "FALSE"); - check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "TRUE"); + check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "true" : "false", "true"); + check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "false"); + check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "true"); } diff --git a/tdecore/tests/kurltest.cpp b/tdecore/tests/kurltest.cpp index 081fdad55..b80515e81 100644 --- a/tdecore/tests/kurltest.cpp +++ b/tdecore/tests/kurltest.cpp @@ -88,25 +88,25 @@ int main(int argc, char *argv[]) KURL::List lst; KURL emptyURL; - check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE"); - check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE"); - check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true"); + check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false"); + check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true"); check( "prettyURL()", emptyURL.prettyURL(), ""); - check( "isLocalFile()", emptyURL.isLocalFile()?"TRUE":"FALSE", "FALSE" ); + check( "isLocalFile()", emptyURL.isLocalFile()?"true":"false", "false" ); emptyURL = ""; - check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE"); - check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE"); - check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true"); + check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false"); + check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true"); KURL fileURL = "file:/"; - check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE"); + check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false"); fileURL = "file:///"; - check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE"); + check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false"); KURL baseURL ("hTTp://www.foo.bar:80" ); - check( "KURL::isValid()", baseURL.isValid() ? "TRUE":"FALSE", "TRUE"); + check( "KURL::isValid()", baseURL.isValid() ? "true":"false", "true"); check( "KURL::protocol()", baseURL.protocol(), "http"); // lowercase KURL url1 ( baseURL, "//www1.foo.bar" ); check( "KURL::host()", url1.host(), "www1.foo.bar"); @@ -184,13 +184,13 @@ int main(int argc, char *argv[]) check("KURL::upURL()", url1.upURL().url(), "file:///home/dfaure/"); url1 = "gg:www.kde.org"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "TRUE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "true" ); url1= "KDE"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "false" ); url1= "$HOME/.trinity/share/config"; - check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" ); + check("KURL::isValid()", url1.isValid()?"true":"false", "false" ); u1 = "file:/opt/kde2/qt2/doc/html/showimg-main-cpp.html#TQObject::connect"; url1 = u1; @@ -1115,9 +1115,9 @@ int main(int argc, char *argv[]) KURL emptyUserTest1("http://www.foobar.com/"); KURL emptyUserTest2("http://www.foobar.com/"); emptyUserTest2.setUser(""); - check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE"); + check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"true":"false","true"); emptyUserTest2.setPass(""); - check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE"); + check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"true":"false","true"); printf("\nTest OK !\n"); } |