summaryrefslogtreecommitdiffstats
path: root/conduits
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 12:43:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-02 09:13:08 +0900
commitbc1e1feb998dbde27fc1ba40c9edcf0165c6dc19 (patch)
tree44e7c1c198dd57036d9160737797bca8de7ab8b9 /conduits
parent6a8d645ce8fe121ba5d88dd89a1cf0c39f83816d (diff)
downloadkpilot-r14.1.4.tar.gz
kpilot-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a3fc822244ed669c7e71ea624429c815b0d6ede2)
Diffstat (limited to 'conduits')
-rw-r--r--conduits/abbrowserconduit/abbrowser-conduit.cpp2
-rw-r--r--conduits/abbrowserconduit/resolutionDialog.cpp8
-rw-r--r--conduits/docconduit/DOC-converter.cpp2
-rw-r--r--conduits/docconduit/doc-conduit.cpp6
-rw-r--r--conduits/docconduit/doc-conflictdialog.cpp2
-rw-r--r--conduits/memofileconduit/memofiles.cpp6
6 files changed, 13 insertions, 13 deletions
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.cpp b/conduits/abbrowserconduit/abbrowser-conduit.cpp
index 6e63596..9657ef3 100644
--- a/conduits/abbrowserconduit/abbrowser-conduit.cpp
+++ b/conduits/abbrowserconduit/abbrowser-conduit.cpp
@@ -1522,7 +1522,7 @@ bool AbbrowserConduit::_buildResolutionTable(ResolutionTable*tab, const Addresse
{
FUNCTIONSETUP;
if (!tab) return false;
- tab->setAutoDelete( TRUE );
+ tab->setAutoDelete( true );
tab->labels[0]=i18n("Item on PC");
tab->labels[1]=i18n("Handheld");
tab->labels[2]=i18n("Last sync");
diff --git a/conduits/abbrowserconduit/resolutionDialog.cpp b/conduits/abbrowserconduit/resolutionDialog.cpp
index 1dd4e65..442a377 100644
--- a/conduits/abbrowserconduit/resolutionDialog.cpp
+++ b/conduits/abbrowserconduit/resolutionDialog.cpp
@@ -212,25 +212,25 @@ void ResolutionDlg::adjustButtons(ResolutionTable*tab)
if (!(tab->fExistItems & eExistsPC) )
{
fWidget->fPCValues->setText(i18n("Delete entry"));
- fWidget->fKeepBoth->setDisabled(TRUE);
+ fWidget->fKeepBoth->setDisabled(true);
fWidget->fKeepBoth->hide();
}
if (!(tab->fExistItems & eExistsPalm) )
{
fWidget->fPalmValues->setText(i18n("Delete entry"));
- fWidget->fKeepBoth->setDisabled(TRUE);
+ fWidget->fKeepBoth->setDisabled(true);
fWidget->fKeepBoth->hide();
}
if (!(tab->fExistItems & eExistsBackup) )
{
- fWidget->fBackupValues->setDisabled(TRUE);
+ fWidget->fBackupValues->setDisabled(true);
}
}
void ResolutionDlg::fillListView()
{
FUNCTIONSETUP;
- fWidget->fResolutionView->setSorting(-1, FALSE);
+ fWidget->fResolutionView->setSorting(-1, false);
fWidget->fResolutionView->clear();
for ( ResolutionItem* it = fTable->last(); it; it = fTable->prev() )
{
diff --git a/conduits/docconduit/DOC-converter.cpp b/conduits/docconduit/DOC-converter.cpp
index 6502fe5..862e6af 100644
--- a/conduits/docconduit/DOC-converter.cpp
+++ b/conduits/docconduit/DOC-converter.cpp
@@ -262,7 +262,7 @@ int DOCConverter::findBmkInline(TQString &text, bmkList &fBmks) {
int nr=0;
TQRegExp rx(CSL1("<\\*(.*)\\*>"));
- rx.setMinimal(TRUE);
+ rx.setMinimal(true);
int pos = 0;
while (pos >= 0) {
pos = rx.search(text, pos);
diff --git a/conduits/docconduit/doc-conduit.cpp b/conduits/docconduit/doc-conduit.cpp
index fb87c37..9e4afd5 100644
--- a/conduits/docconduit/doc-conduit.cpp
+++ b/conduits/docconduit/doc-conduit.cpp
@@ -472,9 +472,9 @@ void DOCConduit::syncNextTXT()
// Include all "extensions" except the last. This allows full stops inside the database name (e.g. abbreviations)
// first fill everything with 0, so we won't have a buffer overflow.
memset(&dbinfo.name[0], 0, 33);
- strncpy(&dbinfo.name[0], fl.baseName(TRUE).latin1(), 30);
+ strncpy(&dbinfo.name[0], fl.baseName(true).latin1(), 30);
- bool alreadySynced=fDBNames.contains(fl.baseName(TRUE));
+ bool alreadySynced=fDBNames.contains(fl.baseName(true));
if (!alreadySynced) {
docSyncInfo syncInfo(TQString::fromLatin1(dbinfo.name),
txtfilename, pdbfilename, eSyncNone);
@@ -528,7 +528,7 @@ void DOCConduit::checkPDBFiles() {
// Get the doc title and check if it has already been synced (in the synced docs list of in fDBNames to be synced)
// If the doc title doesn't appear in either list, install it to the Handheld, and add it to the list of dbs to be synced.
- TQString dbname=fl.baseName(TRUE).left(30);
+ TQString dbname=fl.baseName(true).left(30);
if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) {
if (fHandle->installFiles(pdbfilename, false)) {
DBInfo dbinfo;
diff --git a/conduits/docconduit/doc-conflictdialog.cpp b/conduits/docconduit/doc-conflictdialog.cpp
index c22c58b..a3d7b57 100644
--- a/conduits/docconduit/doc-conflictdialog.cpp
+++ b/conduits/docconduit/doc-conflictdialog.cpp
@@ -98,7 +98,7 @@ ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, s
cE.dbname=new TQLabel(text, big_box);
resolutionGroupBoxLayout->addWidget( cE.dbname, cE.index, 0 );
- cE.resolution=new TQComboBox( FALSE, big_box);
+ cE.resolution=new TQComboBox( false, big_box);
cE.resolution->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7,
(TQSizePolicy::SizeType)0, 0, 0,
cE.resolution->sizePolicy().hasHeightForWidth() ) );
diff --git a/conduits/memofileconduit/memofiles.cpp b/conduits/memofileconduit/memofiles.cpp
index e1bb91e..99114c8 100644
--- a/conduits/memofileconduit/memofiles.cpp
+++ b/conduits/memofileconduit/memofiles.cpp
@@ -628,7 +628,7 @@ bool Memofiles::folderRemove(const TQDir &_d)
TQFileInfo info(d, *it);
if(info.isDir()) {
if(!folderRemove(TQDir(info.filePath())))
- return FALSE;
+ return false;
} else {
DEBUGKPILOT << fname
<< ": deleting file: [" << info.filePath() << "]" << endl;
@@ -637,12 +637,12 @@ bool Memofiles::folderRemove(const TQDir &_d)
}
TQString name = d.dirName();
if(!d.cdUp())
- return FALSE;
+ return false;
DEBUGKPILOT << fname
<< ": removing folder: [" << name << "]" << endl;
d.rmdir(name);
- return TRUE;
+ return true;
}
TQString Memofiles::filename(PilotMemo * memo)