diff options
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 |