diff options
Diffstat (limited to 'kopete/protocols/jabber')
7 files changed, 25 insertions, 25 deletions
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp index e3527855..21af960f 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp @@ -305,7 +305,7 @@ TQString NDns::resultString() const } //! -//! Returns TRUE if busy resolving a hostname. +//! Returns true if busy resolving a hostname. bool NDns::isBusy() const { if(!man) diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp index 72cbb614..027cb061 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/util/bytestream.cpp @@ -78,7 +78,7 @@ ByteStream::~ByteStream() } //! -//! Returns TRUE if the stream is open, meaning that you can write to it. +//! Returns true if the stream is open, meaning that you can write to it. bool ByteStream::isOpen() const { return false; @@ -168,7 +168,7 @@ void ByteStream::appendWrite(const TQByteArray &block) //! //! Returns \a size bytes from the start of the read buffer. //! If \a size is 0, then all available data will be returned. -//! If \a del is TRUE, then the bytes are also removed. +//! If \a del is true, then the bytes are also removed. TQByteArray ByteStream::takeRead(int size, bool del) { return takeArray(&d->readBuf, size, del); @@ -177,7 +177,7 @@ TQByteArray ByteStream::takeRead(int size, bool del) //! //! Returns \a size bytes from the start of the write buffer. //! If \a size is 0, then all available data will be returned. -//! If \a del is TRUE, then the bytes are also removed. +//! If \a del is true, then the bytes are also removed. TQByteArray ByteStream::takeWrite(int size, bool del) { return takeArray(&d->writeBuf, size, del); @@ -217,7 +217,7 @@ void ByteStream::appendArray(TQByteArray *a, const TQByteArray &b) //! //! Returns \a size bytes from the start of the array pointed to by \a from. //! If \a size is 0, then all available data will be returned. -//! If \a del is TRUE, then the bytes are also removed. +//! If \a del is true, then the bytes are also removed. TQByteArray ByteStream::takeArray(TQByteArray *from, int size, bool del) { TQByteArray a; diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp index 9c099ae0..047d2bc0 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp @@ -28,7 +28,7 @@ ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, const char *name) -:TQDialog(parent, name, FALSE, WDestructiveClose) +:TQDialog(parent, name, false, WDestructiveClose) { TQString text; @@ -42,7 +42,7 @@ ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, con TQVBoxLayout *vb1 = new TQVBoxLayout(this, 8); TQTextEdit *te = new TQTextEdit(this); - te->setReadOnly(TRUE); + te->setReadOnly(true); te->setTextFormat(rich ? TQTextEdit::RichText : TQTextEdit::PlainText); te->setText(text); diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h index fb5c2963..fb9b8d32 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h +++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.h @@ -28,7 +28,7 @@ class ShowTextDlg : public TQDialog TQ_OBJECT public: - ShowTextDlg(const TQString &fname, bool rich=FALSE, TQWidget *parent=0, const char *name=0); + ShowTextDlg(const TQString &fname, bool rich=false, TQWidget *parent=0, const char *name=0); }; #endif diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp index e7e929ab..77f003fe 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp @@ -1276,7 +1276,7 @@ void JT_ClientTime::go() bool JT_ClientTime::take(const TQDomElement &x) { if(x.attribute("id") != id()) - return FALSE; + return false; if(x.attribute("type") == "result") { bool found; @@ -1292,14 +1292,14 @@ bool JT_ClientTime::take(const TQDomElement &x) if(found) display = tagContent(tag); - setSuccess(TRUE); + setSuccess(true); } else { setError(getErrorString(x)); - setSuccess(FALSE); + setSuccess(false); } - return TRUE; + return true; } */ @@ -1345,7 +1345,7 @@ bool JT_ServInfo::take(const TQDomElement &e) // query.appendChild(textTag("tz", str)); // query.appendChild(textTag("display", TQString("%1 %2").arg(local.toString()).arg(str))); // send(iq); - // return TRUE; + // return true; //} else if(ns == "http://jabber.org/protocol/disco#info") { // Find out the node diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp index ac7f5626..eee9206c 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_vcard.cpp @@ -42,7 +42,7 @@ static TQDomElement textTag(TQDomDocument *doc, const TQString &name, const TQSt static TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool *found) { if(found) - *found = FALSE; + *found = false; for(TQDomNode n = e.firstChild(); !n.isNull(); n = n.nextSibling()) { TQDomElement i = n.toElement(); @@ -50,7 +50,7 @@ static TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool continue; if(i.tagName().upper() == name.upper()) { // mblsha: ignore case when searching if(found) - *found = TRUE; + *found = true; return i; } } diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp index b6297b61..0bbe7b4b 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_xmlcommon.cpp @@ -264,7 +264,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS /*TQDomElement findSubTag(const TQDomElement &e, const TQString &name, bool *found) { if(found) - *found = FALSE; + *found = false; for(TQDomNode n = e.firstChild(); !n.isNull(); n = n.nextSibling()) { TQDomElement i = n.toElement(); @@ -272,7 +272,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS continue; if(i.tagName() == name) { if(found) - *found = TRUE; + *found = true; return i; } } @@ -283,7 +283,7 @@ TQDomElement stringListToXml(TQDomDocument &doc, const TQString &name, const TQS void readEntry(const TQDomElement &e, const TQString &name, TQString *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; @@ -292,7 +292,7 @@ void readEntry(const TQDomElement &e, const TQString &name, TQString *v) void readNumEntry(const TQDomElement &e, const TQString &name, int *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; @@ -301,16 +301,16 @@ void readNumEntry(const TQDomElement &e, const TQString &name, int *v) void readBoolEntry(const TQDomElement &e, const TQString &name, bool *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; - *v = (tagContent(tag) == "true") ? TRUE: FALSE; + *v = (tagContent(tag) == "true"); } void readSizeEntry(const TQDomElement &e, const TQString &name, TQSize *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; @@ -325,7 +325,7 @@ void readSizeEntry(const TQDomElement &e, const TQString &name, TQSize *v) void readRectEntry(const TQDomElement &e, const TQString &name, TQRect *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; @@ -342,7 +342,7 @@ void readRectEntry(const TQDomElement &e, const TQString &name, TQRect *v) void readColorEntry(const TQDomElement &e, const TQString &name, TQColor *v) { - bool found = FALSE; + bool found = false; TQDomElement tag = findSubTag(e, name, &found); if(!found) return; @@ -378,7 +378,7 @@ void readBoolAttribute(TQDomElement e, const TQString &name, bool *v) { if(e.hasAttribute(name)) { TQString s = e.attribute(name); - *v = (s == "true") ? TRUE: FALSE; + *v = (s == "true"); } } |
