diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 12:35:55 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 12:35:55 +0900 |
| commit | 278778f1151c2c3b4fade15afc7b94f624900b60 (patch) | |
| tree | 3e5556534dce8216383a1026da88bfaef179ecc7 /src/entry.cpp | |
| parent | 15710da5567c0dcf1291d09cb869ef1bf6d08541 (diff) | |
| download | kbibtex-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/entry.cpp')
| -rw-r--r-- | src/entry.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/entry.cpp b/src/entry.cpp index a20d234..206318f 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -190,16 +190,16 @@ namespace BibTeX if ( plainText != NULL ) { TQString plain = plainText->text(); - int urlPos = plain.find( "\\url{", 0, FALSE ); + int urlPos = plain.find( "\\url{", 0, false ); if ( urlPos > -1 ) { plain = plain.mid( urlPos + 5 ); - urlPos = plain.find( "}", 0, FALSE ); + urlPos = plain.find( "}", 0, false ); if ( urlPos > 0 ) plain = plain.left( urlPos - 1 ); } - if ( fieldNames[ i ] == "doi" && !plain.startsWith( "http", FALSE ) ) + if ( fieldNames[ i ] == "doi" && !plain.startsWith( "http", false ) ) plain.prepend( "http://dx.doi.org/" ); result.append( plain ); @@ -213,7 +213,7 @@ namespace BibTeX bool Entry::addField( EntryField * field ) { m_fields.append( field ); - return TRUE; + return true; } EntryField* Entry::getField( const EntryField::FieldType fieldType ) const @@ -244,10 +244,10 @@ namespace BibTeX { delete( *it ); m_fields.remove( *it ); - return TRUE; + return true; } - return FALSE; + return false; } bool Entry::deleteField( const EntryField::FieldType fieldType ) @@ -257,10 +257,10 @@ namespace BibTeX { delete( *it ); m_fields.remove( it ); - return TRUE; + return true; } - return FALSE; + return false; } Entry::EntryFields::ConstIterator Entry::begin() const |
