summaryrefslogtreecommitdiffstats
path: root/src/value.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 12:35:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 12:35:55 +0900
commit278778f1151c2c3b4fade15afc7b94f624900b60 (patch)
tree3e5556534dce8216383a1026da88bfaef179ecc7 /src/value.cpp
parent15710da5567c0dcf1291d09cb869ef1bf6d08541 (diff)
downloadkbibtex-278778f1151c2c3b4fade15afc7b94f624900b60.tar.gz
kbibtex-278778f1151c2c3b4fade15afc7b94f624900b60.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/value.cpp')
-rw-r--r--src/value.cpp18
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() );
}