summaryrefslogtreecommitdiffstats
path: root/src/fileimporterbibtex.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-04-02 09:11:28 +0900
commit59be12b130757642abe0ea212fcb8f919879e5b5 (patch)
treeb407f94812a772cf01d1281110b9c030080446d6 /src/fileimporterbibtex.cpp
parenta034edf0e3a516b55994c7aba28d1956c697c231 (diff)
downloadkbibtex-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/fileimporterbibtex.cpp')
-rw-r--r--src/fileimporterbibtex.cpp24
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 )