diff options
Diffstat (limited to 'src/fileimporterbibtex.cpp')
-rw-r--r-- | src/fileimporterbibtex.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fileimporterbibtex.cpp b/src/fileimporterbibtex.cpp index 3fc98fa..af8ef0e 100644 --- a/src/fileimporterbibtex.cpp +++ b/src/fileimporterbibtex.cpp @@ -39,9 +39,9 @@ namespace BibTeX const TQString extraAlphaNumChars = TQString( "?'`-_:.+/$\\\"&" ); const TQRegExp htmlRegExp = TQRegExp( "</?(a|pre)[^>]*>", false ); - FileImporterBibTeX::FileImporterBibTeX( bool personFirstNameFirst, TQString encoding ) : FileImporter(), m_personFirstNameFirst( personFirstNameFirst ), m_currentChar( ' ' ), m_ignoreComments( FALSE ), m_lineBufferSize( 4096 ), m_encoding( encoding ) + FileImporterBibTeX::FileImporterBibTeX( bool personFirstNameFirst, TQString encoding ) : FileImporter(), m_personFirstNameFirst( personFirstNameFirst ), m_currentChar( ' ' ), m_ignoreComments( false ), m_lineBufferSize( 4096 ), m_encoding( encoding ) { - cancelFlag = FALSE; + cancelFlag = false; m_lineBuffer = new char[m_lineBufferSize]; m_textStream = NULL; } @@ -55,7 +55,7 @@ namespace BibTeX File* FileImporterBibTeX::load( TQIODevice *iodevice ) { m_mutex.lock(); - cancelFlag = FALSE; + cancelFlag = false; TQString rawText; const char *encodingFrom = m_encoding == "latex" ? "utf-8\0" : m_encoding.append( "\0" ).ascii(); @@ -163,7 +163,7 @@ namespace BibTeX void FileImporterBibTeX::cancel() { - cancelFlag = TRUE; + cancelFlag = true; } Element *FileImporterBibTeX::nextElement() @@ -204,7 +204,7 @@ namespace BibTeX while ( m_currentChar != '{' && m_currentChar != '(' && !m_textStream->atEnd() ) m_currentChar = nextChar(); - return new Comment( readBracketString( m_currentChar ), TRUE ); + return new Comment( readBracketString( m_currentChar ), true ); } Comment *FileImporterBibTeX::readPlainCommentElement() @@ -219,7 +219,7 @@ namespace BibTeX result.append( readLine() ); m_currentChar = nextChar(); } - return new Comment( result, FALSE ); + return new Comment( result, false ); } Macro *FileImporterBibTeX::readMacroElement() @@ -245,7 +245,7 @@ namespace BibTeX Macro *macro = new Macro( key ); do { - bool isStringKey = FALSE; + bool isStringKey = false; TQString text = readString( isStringKey ).replace( TQRegExp( "\\s+" ), " " ); if ( isStringKey ) macro->value()->items.append( new MacroKey( text ) ); @@ -275,7 +275,7 @@ namespace BibTeX Preamble *preamble = new Preamble( ); do { - bool isStringKey = FALSE; + bool isStringKey = false; TQString text = readString( isStringKey ).replace( TQRegExp( "\\s+" ), " " ); if ( isStringKey ) preamble->value()->items.append( new MacroKey( text ) ); @@ -350,7 +350,7 @@ namespace BibTeX entry->addField( entryField ); } - while ( TRUE ); + while ( true ); return entry; } @@ -403,7 +403,7 @@ namespace BibTeX while ( m_currentChar.isSpace() ) m_currentChar = nextChar(); - isStringKey = FALSE; + isStringKey = false; switch ( m_currentChar.latin1() ) { case '{': @@ -412,7 +412,7 @@ namespace BibTeX case '"': return readQuotedString(); default: - isStringKey = TRUE; + isStringKey = true; return readSimpleString(); } } @@ -513,7 +513,7 @@ namespace BibTeX do { - bool isStringKey = FALSE; + bool isStringKey = false; TQString text = readString( isStringKey ).replace( TQRegExp( "\\s+" ), " " ); switch ( fieldType ) |