diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-03 15:55:36 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-08 17:13:22 +0900 |
| commit | 2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch) | |
| tree | e294a699a78e0aef2969216fc8fc1378b83b0064 /kopete/plugins | |
| parent | b2cb25ce7dde70c48747856d22dfac03f27033e1 (diff) | |
| download | tdenetwork-2cab1f30.tar.gz tdenetwork-2cab1f30.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 89969dcb2142d91b295c8d18cde46e22ef118dce)
Diffstat (limited to 'kopete/plugins')
| -rw-r--r-- | kopete/plugins/cryptography/popuppublic.cpp | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/iconnector.h | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/onlineinquiry.cpp | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdcsplugin.h | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdcspreferences.cpp | 10 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdcspreferences.h | 2 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp | 14 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdsearcher.cpp | 4 | ||||
| -rw-r--r-- | kopete/plugins/smpppdcs/smpppdsearcher.h | 4 |
10 files changed, 22 insertions, 22 deletions
diff --git a/kopete/plugins/cryptography/popuppublic.cpp b/kopete/plugins/cryptography/popuppublic.cpp index 882b2fe5..a6e627fe 100644 --- a/kopete/plugins/cryptography/popuppublic.cpp +++ b/kopete/plugins/cryptography/popuppublic.cpp @@ -454,7 +454,7 @@ void popupPublic::slotprocread(KProcIO *p) UpdateViewItem2 *item=new UpdateViewItem2(keysList,keyname,keymail,id,isDefaultKey); //TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val)); //sub->setSelectable(false); - if (seclist.find(tst,0,FALSE)!=-1) + if (seclist.find(tst,0,false)!=-1) item->setPixmap(0,keyPair); else item->setPixmap(0,keySingle); diff --git a/kopete/plugins/smpppdcs/iconnector.h b/kopete/plugins/smpppdcs/iconnector.h index c4846862..868adcf6 100644 --- a/kopete/plugins/smpppdcs/iconnector.h +++ b/kopete/plugins/smpppdcs/iconnector.h @@ -37,7 +37,7 @@ public: * This method needs to get reimplemented at classes which implement * this interface. * - * @param newStatus the status of the internet connection, <code>TRUE</code> if there is a connection, otherwise <code>FALSE</code> + * @param newStatus the status of the internet connection, <code>true</code> if there is a connection, otherwise <code>false</code> */ virtual void setConnectedStatus(bool newStatus) = 0; }; diff --git a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp index 1868893f..a8782459 100644 --- a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp +++ b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp @@ -71,7 +71,7 @@ bool Unsettled::connect(Client * client, const TQString& server, uint port) { } setSocket(client, new KNetwork::KStreamSocket(resolvedServer, TQString::number(port))); - socket(client)->setBlocking(TRUE); + socket(client)->setBlocking(true); if(!socket(client)->connect()) { kdDebug(14312) << k_funcinfo << "Socket Error: " << KNetwork::KStreamSocket::errorString(socket(client)->error()) << endl; diff --git a/kopete/plugins/smpppdcs/onlineinquiry.cpp b/kopete/plugins/smpppdcs/onlineinquiry.cpp index 4cab45d7..ac3fbdd7 100644 --- a/kopete/plugins/smpppdcs/onlineinquiry.cpp +++ b/kopete/plugins/smpppdcs/onlineinquiry.cpp @@ -19,7 +19,7 @@ #include "onlineinquiry.h" OnlineInquiry::OnlineInquiry() - : m_detector(NULL), m_online(FALSE) {} + : m_detector(NULL), m_online(false) {} OnlineInquiry::~OnlineInquiry() { delete m_detector; diff --git a/kopete/plugins/smpppdcs/smpppdcsplugin.h b/kopete/plugins/smpppdcs/smpppdcsplugin.h index 2742abfa..d2bfecdc 100644 --- a/kopete/plugins/smpppdcs/smpppdcsplugin.h +++ b/kopete/plugins/smpppdcs/smpppdcsplugin.h @@ -67,7 +67,7 @@ public: /** * @brief Checks if we are online. * @note This method is reserved for future use. Do not use at the moment! - * @return <code>TRUE</code> if online, otherwise <code>FALSE</code> + * @return <code>true</code> if online, otherwise <code>false</code> */ virtual bool isOnline() const; diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp index 338c61e0..88a3cbd1 100644 --- a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp +++ b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp @@ -61,8 +61,8 @@ SMPPPDCSPreferences::SMPPPDCSPreferences(TQWidget * parent, const char * /* name (*it)->accountId() + " (" + protoName + ")", TQCheckListItem::CheckBox); cli->setPixmap(0, (*it)->accountIcon()); - m_accountMapOld[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId()); - m_accountMapCur[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());; + m_accountMapOld[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId()); + m_accountMapCur[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());; m_ui->accountList->insertItem(cli); } @@ -90,11 +90,11 @@ void SMPPPDCSPreferences::listClicked(TQListViewItem * item) if(cli->isOn() != m_accountMapCur[cli->text(0)].m_on) { AccountMap::iterator itOld = m_accountMapOld.begin(); AccountMap::iterator itCur; - bool change = FALSE; + bool change = false; for(itCur = m_accountMapCur.begin(); itCur != m_accountMapCur.end(); ++itCur, ++itOld) { if((*itCur).m_on != (*itOld).m_on){ - change = TRUE; + change = true; break; } } @@ -108,7 +108,7 @@ void SMPPPDCSPreferences::defaults() TQListViewItemIterator it(m_ui->accountList); while(it.current()) { TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current()); - cli->setOn(FALSE); + cli->setOn(false); ++it; } diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.h b/kopete/plugins/smpppdcs/smpppdcspreferences.h index 412837b7..fd81d0d3 100644 --- a/kopete/plugins/smpppdcs/smpppdcspreferences.h +++ b/kopete/plugins/smpppdcs/smpppdcspreferences.h @@ -25,7 +25,7 @@ class SMPPPDCSPrefs; class AccountPrivMap { public: - AccountPrivMap(bool isOn = FALSE, const TQString& id = TQString()) + AccountPrivMap(bool isOn = false, const TQString& id = TQString()) : m_on(isOn), m_id(id) {} bool m_on; TQString m_id; diff --git a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp index ca4462e8..68a4ac16 100644 --- a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp +++ b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp @@ -57,10 +57,10 @@ SMPPPDCSPrefs::SMPPPDCSPrefs(TQWidget* parent, const char* name, WFlags fl) // if netstat is NOT available, disable the option and set to SMPPPD if(TDEStandardDirs::findExe("netstat") == TQString()) { - autoCSTest->setEnabled(FALSE); - useNetstat->setEnabled(FALSE); - useNetstat->setChecked(FALSE); - useSmpppd->setChecked(TRUE); + autoCSTest->setEnabled(false); + useNetstat->setEnabled(false); + useNetstat->setChecked(false); + useSmpppd->setChecked(true); } } @@ -95,9 +95,9 @@ void SMPPPDCSPrefs::scanStarted(uint total) { // setup the scanProgress Dialog if(!m_scanProgressDlg) { - m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), TRUE); - m_scanProgressDlg->setAutoClose(TRUE); - m_scanProgressDlg->setAllowCancel(TRUE); + m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), true); + m_scanProgressDlg->setAutoClose(true); + m_scanProgressDlg->setAllowCancel(true); m_scanProgressDlg->setMinimumDuration(2000); connect(m_scanProgressDlg, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(cancelScanning())); diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.cpp b/kopete/plugins/smpppdcs/smpppdsearcher.cpp index d121292b..306c1d65 100644 --- a/kopete/plugins/smpppdcs/smpppdsearcher.cpp +++ b/kopete/plugins/smpppdcs/smpppdsearcher.cpp @@ -24,7 +24,7 @@ #include "smpppdsearcher.h" SMPPPDSearcher::SMPPPDSearcher() - : m_cancelSearchNow(FALSE), + : m_cancelSearchNow(false), m_procIfconfig(NULL), m_procNetstat(NULL) {} @@ -149,7 +149,7 @@ bool SMPPPDSearcher::scan(const TQString& ip, const TQString& mask) { } uint range = max_range - min_range; - m_cancelSearchNow = FALSE; + m_cancelSearchNow = false; if(range > 1) { emit scanStarted(max_range); } diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.h b/kopete/plugins/smpppdcs/smpppdsearcher.h index d5a41a64..0ecc8ec8 100644 --- a/kopete/plugins/smpppdcs/smpppdsearcher.h +++ b/kopete/plugins/smpppdcs/smpppdsearcher.h @@ -64,7 +64,7 @@ protected: * * @param ip the ntwork ip * @param mask the network mask - * @return <code>TRUE</code> if an smpppd was found + * @return <code>true</code> if an smpppd was found */ bool scan(const TQString& ip, const TQString& mask); @@ -96,7 +96,7 @@ private: }; inline void SMPPPDSearcher::cancelSearch() { - m_cancelSearchNow = TRUE; + m_cancelSearchNow = true; } #endif |
