summaryrefslogtreecommitdiffstats
path: root/src/modules/help
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:06:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:27:39 +0900
commit291b4f5da2f98283b7c98ee90401df7c3cb34dad (patch)
treea28eb1a3c46756a6c6dbf3cdaa7bd88807d237c8 /src/modules/help
parent1f1b292b68c4fe5d4843dba00eff77b431e6bc12 (diff)
downloadkvirc-291b4f5da2f98283b7c98ee90401df7c3cb34dad.tar.gz
kvirc-291b4f5da2f98283b7c98ee90401df7c3cb34dad.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/help')
-rw-r--r--src/modules/help/helpwindow.cpp8
-rw-r--r--src/modules/help/index.cpp48
2 files changed, 28 insertions, 28 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp
index 56f8663..1911e65 100644
--- a/src/modules/help/helpwindow.cpp
+++ b/src/modules/help/helpwindow.cpp
@@ -46,7 +46,7 @@ extern Index * g_pDocIndex;
extern KviPointerList<KviHelpWindow> * g_pHelpWindowList;
extern KviPointerList<KviHelpWidget> * g_pHelpWidgetList;
-bool g_bIndexingDone = FALSE;
+bool g_bIndexingDone = false;
KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
: KviWindow(KVI_WINDOW_TYPE_HELP,lpFrm,name)
{
@@ -68,7 +68,7 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
g_pDocIndex->writeDocumentList();
delete pProgressDialog;
}
- g_bIndexingDone=TRUE;
+ g_bIndexingDone=true;
}
g_pHelpWindowList->append(this);
@@ -150,7 +150,7 @@ void KviHelpWindow::refreshIndex()
g_pDocIndex->writeDict();
g_pDocIndex->writeDocumentList();
delete pProgressDialog;
- g_bIndexingDone=TRUE;
+ g_bIndexingDone=true;
TQStringList docList=g_pDocIndex->titlesList();
m_pIndexListBox->insertStringList(docList);
m_pIndexListBox->sort();
@@ -210,7 +210,7 @@ void KviHelpWindow::startSearch()
m_pResultBox->insertItem( g_pDocIndex->getDocumentTitle( *it ) );
m_terms.clear();
- bool isPhrase = FALSE;
+ bool isPhrase = false;
TQString s = "";
for ( int i = 0; i < (int)buf.length(); ++i ) {
if ( buf[i] == '\"' ) {
diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp
index 1596d4e..82c5f57 100644
--- a/src/modules/help/index.cpp
+++ b/src/modules/help/index.cpp
@@ -37,8 +37,8 @@ Index::Index( const TQString &dp, const TQString &hp )
: TQObject( 0, 0 ), dict( 8999 ), docPath( dp )
{
- alreadyHaveDocList = FALSE;
- lastWindowClosed = FALSE;
+ alreadyHaveDocList = false;
+ lastWindowClosed = false;
connect( tqApp, TQ_SIGNAL( lastWindowClosed() ),
this, TQ_SLOT( setLastWinClosed() ) );
}
@@ -51,8 +51,8 @@ Index::Index( const TQStringList &dl, const TQString &hp )
{
docList = dl;
- alreadyHaveDocList = TRUE;
- lastWindowClosed = FALSE;
+ alreadyHaveDocList = true;
+ lastWindowClosed = false;
connect( tqApp, TQ_SIGNAL( lastWindowClosed() ),
this, TQ_SLOT( setLastWinClosed() ) );
}
@@ -63,7 +63,7 @@ void Index::setLastWinClosed()
{
- lastWindowClosed = TRUE;
+ lastWindowClosed = true;
}
@@ -163,7 +163,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
TQString text = s.read();
if (text.isNull())
return;
- bool valid = TRUE;
+ bool valid = true;
const TQChar *buf = text.unicode();
TQChar str[64];
TQChar c = buf[0];
@@ -171,7 +171,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
int i = 0;
while ( (uint)j < text.length() ) {
if ( c == '<' || c == '&' ) {
- valid = FALSE;
+ valid = false;
if ( i > 1 )
insertInDict( TQString(str,i), docNum );
i = 0;
@@ -179,7 +179,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
continue;
}
if ( ( c == '>' || c == ';' ) && !valid ) {
- valid = TRUE;
+ valid = true;
c = buf[++j];
continue;
}
@@ -379,7 +379,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe
while ( C != minDocs.end() ) {
- bool found = FALSE;
+ bool found = false;
for ( It = docs.begin(); It != docs.end(); ++It ) {
@@ -387,7 +387,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe
(*C).frequency += (*It).frequency;
- found = TRUE;
+ found = true;
break;
@@ -462,9 +462,9 @@ TQString Index::getDocumentTitle( const TQString &fileName )
- int start = text.find( "<title>", 0, FALSE ) + 7;
+ int start = text.find( "<title>", 0, false ) + 7;
- int end = text.find( "</title>", 0, FALSE );
+ int end = text.find( "</title>", 0, false );
@@ -493,7 +493,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
int index = 0;
- bool found = FALSE;
+ bool found = false;
TQString text( it.currentKey() );
@@ -501,7 +501,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
if ( *iter == "*" ) {
- found = TRUE;
+ found = true;
continue;
@@ -509,7 +509,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
if ( iter == terms.begin() && (*iter)[0] != text[0] ) {
- found = FALSE;
+ found = false;
break;
@@ -523,7 +523,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
if ( index != (int)text.length() - (int)(*iter).length() ) {
- found = FALSE;
+ found = false;
break;
@@ -533,7 +533,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
if ( index != -1 ) {
- found = TRUE;
+ found = true;
index += (*iter).length();
@@ -541,7 +541,7 @@ TQStringList Index::getWildcardTerms( const TQString &term )
} else {
- found = FALSE;
+ found = false;
break;
@@ -697,7 +697,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
tqWarning( "cannot open file %s", fileName.ascii() );
- return FALSE;
+ return false;
}
@@ -719,7 +719,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
TQString text = s.read();
- bool valid = TRUE;
+ bool valid = true;
const TQChar *buf = text.unicode();
@@ -735,7 +735,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
if ( c == '<' || c == '&' ) {
- valid = FALSE;
+ valid = false;
if ( i > 1 )
@@ -751,7 +751,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
if ( ( c == '>' || c == ';' ) && !valid ) {
- valid = TRUE;
+ valid = true;
c = buf[++j];
@@ -837,9 +837,9 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
if ( a.count() )
- return TRUE;
+ return true;
- return FALSE;
+ return false;
}