diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 12:35:55 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 09:11:28 +0900 |
commit | 59be12b130757642abe0ea212fcb8f919879e5b5 (patch) | |
tree | b407f94812a772cf01d1281110b9c030080446d6 /src/fileexporterris.cpp | |
parent | a034edf0e3a516b55994c7aba28d1956c697c231 (diff) | |
download | kbibtex-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/fileexporterris.cpp')
-rw-r--r-- | src/fileexporterris.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fileexporterris.cpp b/src/fileexporterris.cpp index 21f92e6..ae54e9d 100644 --- a/src/fileexporterris.cpp +++ b/src/fileexporterris.cpp @@ -39,7 +39,7 @@ namespace BibTeX bool FileExporterRIS::save( TQIODevice* iodevice, const Element* element, TQStringList* /*errorLog*/ ) { m_mutex.lock(); - bool result = FALSE; + bool result = false; TQTextStream stream( iodevice ); const Entry *entry = dynamic_cast<const Entry*>( element ); @@ -53,8 +53,8 @@ namespace BibTeX bool FileExporterRIS::save( TQIODevice* iodevice, const File* bibtexfile, TQStringList* /*errorLog*/ ) { m_mutex.lock(); - bool result = TRUE; - m_cancelFlag = FALSE; + bool result = true; + m_cancelFlag = false; TQTextStream stream( iodevice ); int numElements = (int) bibtexfile->count(), i = 0; @@ -77,12 +77,12 @@ namespace BibTeX void FileExporterRIS::cancel() { - m_cancelFlag = TRUE; + m_cancelFlag = true; } bool FileExporterRIS::writeEntry( TQTextStream &stream, const Entry* entry ) { - bool result = TRUE; + bool result = true; tqDebug( "Writing Entry" ); switch ( entry->entryType() ) @@ -120,13 +120,13 @@ namespace BibTeX result &= writeKeyValue( stream, field->fieldTypeName().right( 2 ), field->value()->simplifiedText() ); else if ( field->fieldType() == EntryField::ftAuthor ) { - TQStringList authors = TQStringList::split( TQRegExp( "\\s+(,|and|&)\\s+", FALSE ), field->value() ->simplifiedText() ); + TQStringList authors = TQStringList::split( TQRegExp( "\\s+(,|and|&)\\s+", false ), field->value() ->simplifiedText() ); for ( TQStringList::Iterator it = authors.begin(); result && it != authors.end(); ++it ) result &= writeKeyValue( stream, "AU", *it ); } else if ( field->fieldType() == EntryField::ftEditor ) { - TQStringList authors = TQStringList::split( TQRegExp( "\\s+(,|and|&)\\s+", FALSE ), field->value() ->simplifiedText() ); + TQStringList authors = TQStringList::split( TQRegExp( "\\s+(,|and|&)\\s+", false ), field->value() ->simplifiedText() ); for ( TQStringList::Iterator it = authors.begin(); result && it != authors.end(); ++it ) result &= writeKeyValue( stream, "ED", *it ); } @@ -194,7 +194,7 @@ namespace BibTeX stream << endl; tqDebug( "%s - %s", key.latin1(), value.latin1() ); - return TRUE; + return true; } } |