summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-31 15:40:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-31 15:48:52 +0900
commit66dc020d264d1fe4ebe235e5dd7eceb863007d7c (patch)
tree20ec5c89988c1ed470adf0893343f4d9c5119905
parent0ab7a6fc13973ab74f2116c3260cec68a766f85e (diff)
downloadkchmviewer-66dc020d264d1fe4ebe235e5dd7eceb863007d7c.tar.gz
kchmviewer-66dc020d264d1fe4ebe235e5dd7eceb863007d7c.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--lib/libchmfile/libchmfile_search.cpp2
-rw-r--r--lib/libchmfile/libchmfileimpl.cpp8
-rw-r--r--lib/libchmfile/libchmfileimpl.h4
-rw-r--r--src/kchmkeyeventfilter.cpp2
-rw-r--r--src/kchmmainwindow.cpp2
-rw-r--r--src/kchmsearchtoolbar.cpp2
-rw-r--r--src/kchmsearchwindow.cpp2
-rw-r--r--src/kchmsetupdialog_impl.h2
-rw-r--r--src/kchmviewwindow_qtextbrowser.cpp6
-rw-r--r--src/tde/kchmviewwindow_tdehtmlpart.cpp2
10 files changed, 16 insertions, 16 deletions
diff --git a/lib/libchmfile/libchmfile_search.cpp b/lib/libchmfile/libchmfile_search.cpp
index 928a809..5f3be21 100644
--- a/lib/libchmfile/libchmfile_search.cpp
+++ b/lib/libchmfile/libchmfile_search.cpp
@@ -198,7 +198,7 @@ bool LCHMFile::searchQuery( const TQString& inquery, TQStringList * searchresult
TQRegExp rxphrase( "\"(.*)\"" );
TQRegExp rxword( "([^\\s]+)" );
- rxphrase.setMinimal( TRUE );
+ rxphrase.setMinimal( true );
// First, get the phrase queries
while ( (pos = rxphrase.search (query, 0)) != -1 )
diff --git a/lib/libchmfile/libchmfileimpl.cpp b/lib/libchmfile/libchmfileimpl.cpp
index 51bd7b4..63fc376 100644
--- a/lib/libchmfile/libchmfileimpl.cpp
+++ b/lib/libchmfile/libchmfileimpl.cpp
@@ -1032,18 +1032,18 @@ bool LCHMFileImpl::parseFileAndFillArray( const TQString & file, QT34VECTOR< LCH
TQString name_pattern = "name=", value_pattern = "value=";
TQString pname, pvalue;
- if ( (offset = tag.find (name_pattern, 0, FALSE)) == -1 )
+ if ( (offset = tag.find (name_pattern, 0, false)) == -1 )
tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no name=\n", tag.ascii());
// offset+5 skips 'name='
- offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, TRUE, FALSE);
+ offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, true, false);
pname = pname.lower();
- if ( (offset = tag.find (value_pattern, offset, FALSE)) == -1 )
+ if ( (offset = tag.find (value_pattern, offset, false)) == -1 )
tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no value=\n", tag.ascii());
// offset+6 skips 'value='
- findStringInQuotes (tag, offset + value_pattern.length(), pvalue, FALSE, TRUE);
+ findStringInQuotes (tag, offset + value_pattern.length(), pvalue, false, true);
//tqDebug ("<param>: name '%s', value '%s'", pname.ascii(), pvalue.ascii());
diff --git a/lib/libchmfile/libchmfileimpl.h b/lib/libchmfile/libchmfileimpl.h
index d596d81..4dd7f85 100644
--- a/lib/libchmfile/libchmfileimpl.h
+++ b/lib/libchmfile/libchmfileimpl.h
@@ -258,7 +258,7 @@ class LCHMFileImpl
//! Map to decode HTML entitles like &acute; based on current encoding
TQMap<TQString, TQString> m_entityDecodeMap;
- //! TRUE if /#TOPICS, /#STRINGS, /#URLTBL and /#URLSTR are resolved, and the members below are valid
+ //! true if /#TOPICS, /#STRINGS, /#URLTBL and /#URLSTR are resolved, and the members below are valid
bool m_lookupTablesValid;
//! pointer to /#TOPICS
@@ -274,7 +274,7 @@ class LCHMFileImpl
chmUnitInfo m_chmURLSTR;
//! Indicates whether the built-in search is available. This is true only when m_lookupTablesValid
- //! is TRUE, and m_chmFIftiMain is resolved.
+ //! is true, and m_chmFIftiMain is resolved.
bool m_searchAvailable;
//! pointer to /$FIftiMain
diff --git a/src/kchmkeyeventfilter.cpp b/src/kchmkeyeventfilter.cpp
index 984c457..ef7dc9a 100644
--- a/src/kchmkeyeventfilter.cpp
+++ b/src/kchmkeyeventfilter.cpp
@@ -49,5 +49,5 @@ bool KCHMKeyEventFilter::eventFilter( TQObject *, TQEvent *e )
*ptr = e->type() == TQEvent::KeyPress ? true : false;
}
- return FALSE; // Standard event processing
+ return false; // Standard event processing
}
diff --git a/src/kchmmainwindow.cpp b/src/kchmmainwindow.cpp
index f6391d2..0abfdb7 100644
--- a/src/kchmmainwindow.cpp
+++ b/src/kchmmainwindow.cpp
@@ -1056,7 +1056,7 @@ void KCHMMainWindow::slotExtractCHM( )
this,
0,
i18n("Choose a directory to store CHM content"),
- TRUE );
+ true );
#endif
if ( outdir.isEmpty() )
diff --git a/src/kchmsearchtoolbar.cpp b/src/kchmsearchtoolbar.cpp
index 2c7e272..a600f36 100644
--- a/src/kchmsearchtoolbar.cpp
+++ b/src/kchmsearchtoolbar.cpp
@@ -61,7 +61,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
TQPixmap iconLocateInContent (*gIconStorage.getToolbarPixmap(KCHMIconStorage::locate_in_content));
// Create the combobox to enter the find text
- m_findBox = new TQComboBox (TRUE, this);
+ m_findBox = new TQComboBox (true, this);
m_findBox->setMinimumWidth (200);
connect( m_findBox->lineEdit(), TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( onReturnPressed() ) );
TQWhatsThis::add( m_findBox, i18n( "Enter here the text to search in the current page.") );
diff --git a/src/kchmsearchwindow.cpp b/src/kchmsearchwindow.cpp
index 8d936c7..2143e74 100644
--- a/src/kchmsearchwindow.cpp
+++ b/src/kchmsearchwindow.cpp
@@ -50,7 +50,7 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags
labellayout->addWidget ( helplink );
layout->addLayout( labellayout );
- m_searchQuery = new TQComboBox (TRUE, this);
+ m_searchQuery = new TQComboBox (true, this);
m_searchQuery->setFocus();
m_searchQuery->setMaxCount (10);
m_searchQuery->setSizePolicy ( TQSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) );
diff --git a/src/kchmsetupdialog_impl.h b/src/kchmsetupdialog_impl.h
index 1f35dde..a978040 100644
--- a/src/kchmsetupdialog_impl.h
+++ b/src/kchmsetupdialog_impl.h
@@ -25,7 +25,7 @@ class KCHMSetupDialog_impl : public KCHMSetupDialog
TQ_OBJECT
public:
- KCHMSetupDialog_impl( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KCHMSetupDialog_impl( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
public slots:
void slotShowHelp();
diff --git a/src/kchmviewwindow_qtextbrowser.cpp b/src/kchmviewwindow_qtextbrowser.cpp
index d3f1f72..6ea8b20 100644
--- a/src/kchmviewwindow_qtextbrowser.cpp
+++ b/src/kchmviewwindow_qtextbrowser.cpp
@@ -133,7 +133,7 @@ bool KCHMViewWindow_QTextBrowser::printCurrentPage( )
{
#if !defined (TQT_NO_PRINTER)
TQPrinter printer( TQPrinter::HighResolution );
- printer.setFullPage(TRUE);
+ printer.setFullPage(true);
if ( printer.setup( this ) )
{
@@ -174,7 +174,7 @@ bool KCHMViewWindow_QTextBrowser::printCurrentPage( )
printer.newPage();
page++;
}
- while (TRUE);
+ while (true);
::mainWindow->showInStatusBar( i18n( "Printing completed") );
return true;
@@ -213,7 +213,7 @@ void KCHMViewWindow_QTextBrowser::searchWord( const TQString & word, bool forwar
void KCHMViewWindow_QTextBrowser::clipSelectAll( )
{
- selectAll (TRUE);
+ selectAll (true);
}
void KCHMViewWindow_QTextBrowser::clipCopy( )
diff --git a/src/tde/kchmviewwindow_tdehtmlpart.cpp b/src/tde/kchmviewwindow_tdehtmlpart.cpp
index ad4a617..fc6a3ad 100644
--- a/src/tde/kchmviewwindow_tdehtmlpart.cpp
+++ b/src/tde/kchmviewwindow_tdehtmlpart.cpp
@@ -64,7 +64,7 @@ bool KCHMViewWindow_TDEHTMLPart::openPage (const TQString& url)
if ( m_currentEncoding != ::mainWindow->chmFile()->currentEncoding() )
{
m_currentEncoding = ::mainWindow->chmFile()->currentEncoding();
- setEncoding ( m_currentEncoding->qtcodec, TRUE );
+ setEncoding ( m_currentEncoding->qtcodec, true );
}
TQString fullurl = "ms-its:" + ::mainWindow->getOpenedFileName() + "::" + url;