From 278778f1151c2c3b4fade15afc7b94f624900b60 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 28 Mar 2025 12:35:55 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- src/value.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/value.cpp') diff --git a/src/value.cpp b/src/value.cpp index 8499f4a..a69a431 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -117,7 +117,7 @@ namespace BibTeX void KeywordContainer::append( const TQString& text ) { - bool contains = FALSE; + bool contains = false; for ( TQValueList::ConstIterator it = keywords.begin(); !contains && it != keywords.end(); ++it ) contains = TQString::compare(( *it )->text(), text ) == 0; @@ -128,7 +128,7 @@ namespace BibTeX void KeywordContainer::remove( const TQString& text ) { - bool contains = FALSE; + bool contains = false; for ( TQValueList::Iterator it = keywords.begin(); !contains && it != keywords.end(); ++it ) if ( TQString::compare(( *it )->text(), text ) == 0 ) { @@ -148,7 +148,7 @@ namespace BibTeX splitRegExp = TQRegExp( "\\s*,\\s*" ); keywords.clear(); - TQStringList keywordList = TQStringList::split( splitRegExp, text, FALSE ); + TQStringList keywordList = TQStringList::split( splitRegExp, text, false ); for ( TQStringList::ConstIterator it = keywordList.begin(); it != keywordList.end(); ++it ) keywords.append( new Keyword( *it ) ); } @@ -252,11 +252,11 @@ namespace BibTeX } else { - bool inLastName = TRUE; + bool inLastName = true; for ( unsigned int i = 0; i < segments.count();++i ) { if ( segments[i] == "," ) - inLastName = FALSE; + inLastName = false; else if ( inLastName ) { if ( !m_lastName.isEmpty() ) m_lastName.append( " " ); @@ -298,7 +298,7 @@ namespace BibTeX bool Person::splitName( const TQString& text, TQStringList& segments ) { int bracketCounter = 0; - bool result = FALSE; + bool result = false; TQString buffer = ""; for ( unsigned int pos = 0; pos < text.length(); ++pos ) @@ -324,7 +324,7 @@ namespace BibTeX buffer = ""; } segments.append( "," ); - result = TRUE; + result = true; } else buffer.append( text[pos] ); @@ -364,14 +364,14 @@ namespace BibTeX TQString PersonContainer::text() const { TQString result; - bool first = TRUE; + bool first = true; for ( TQValueList::ConstIterator it = persons.begin(); it != persons.end(); ++it ) { if ( !first ) result.append( " and " ); else - first = FALSE; + first = false; result.append(( *it )->text() ); } -- cgit v1.2.3