diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 12:35:55 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 09:11:28 +0900 |
commit | 59be12b130757642abe0ea212fcb8f919879e5b5 (patch) | |
tree | b407f94812a772cf01d1281110b9c030080446d6 /src/value.cpp | |
parent | a034edf0e3a516b55994c7aba28d1956c697c231 (diff) | |
download | kbibtex-r14.1.4.tar.gz kbibtex-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 278778f1151c2c3b4fade15afc7b94f624900b60)
Diffstat (limited to 'src/value.cpp')
-rw-r--r-- | src/value.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<Keyword*>::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<Keyword*>::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<Person*>::ConstIterator it = persons.begin(); it != persons.end(); ++it ) { if ( !first ) result.append( " and " ); else - first = FALSE; + first = false; result.append(( *it )->text() ); } |