summaryrefslogtreecommitdiffstats
path: root/src/fileexporterxml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileexporterxml.cpp')
-rw-r--r--src/fileexporterxml.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fileexporterxml.cpp b/src/fileexporterxml.cpp
index bbacd11..1b7c2e8 100644
--- a/src/fileexporterxml.cpp
+++ b/src/fileexporterxml.cpp
@@ -45,8 +45,8 @@ namespace BibTeX
bool FileExporterXML::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 );
stream.setEncoding( TQTextStream::UnicodeUTF8 );
@@ -79,12 +79,12 @@ namespace BibTeX
void FileExporterXML::cancel()
{
- m_cancelFlag = TRUE;
+ m_cancelFlag = true;
}
bool FileExporterXML::write( TQTextStream&stream, const Element *element, const File* bibtexfile )
{
- bool result = FALSE;
+ bool result = false;
const Entry *entry = dynamic_cast<const Entry*>( element );
if ( entry != NULL )
@@ -130,7 +130,7 @@ namespace BibTeX
{
TQString tag = field->fieldTypeName().lower();
stream << " <" << tag << "s>" << endl;
- TQStringList persons = TQStringList::split( TQRegExp( "\\s+(,|and|&)+\\s+", FALSE ), EncoderXML::currentEncoderXML() ->encode( valueToString( field->value() ) ) );
+ TQStringList persons = TQStringList::split( TQRegExp( "\\s+(,|and|&)+\\s+", false ), EncoderXML::currentEncoderXML() ->encode( valueToString( field->value() ) ) );
for ( TQStringList::Iterator it = persons.begin(); it != persons.end(); it++ )
stream << " <person>" << *it << "</person>" << endl;
stream << " </" << tag << "s>" << endl;
@@ -139,7 +139,7 @@ namespace BibTeX
case EntryField::ftMonth:
{
stream << " <month";
- bool ok = FALSE;
+ bool ok = false;
int month = -1;
TQString tag = "";
@@ -157,7 +157,7 @@ namespace BibTeX
month = i + 1;
}
content.append( Months[ i ] );
- ok = TRUE;
+ ok = true;
break;
}
}
@@ -186,7 +186,7 @@ namespace BibTeX
}
stream << " </entry>" << endl;
- return TRUE;
+ return true;
}
bool FileExporterXML::writeMacro( TQTextStream &stream, const Macro *macro )
@@ -195,7 +195,7 @@ namespace BibTeX
stream << EncoderXML::currentEncoderXML() ->encode( valueToString( macro->value() ) );
stream << "</string>" << endl;
- return TRUE;
+ return true;
}
bool FileExporterXML::writeComment( TQTextStream &stream, const Comment *comment )
@@ -204,19 +204,19 @@ namespace BibTeX
stream << EncoderXML::currentEncoderXML() ->encode( comment->text() );
stream << "</comment>" << endl;
- return TRUE;
+ return true;
}
TQString FileExporterXML::valueToString( Value *value )
{
TQString result;
- bool isFirst = TRUE;
+ bool isFirst = true;
for ( TQValueList<ValueItem*>::ConstIterator it = value->items.begin(); it != value->items.end(); it++ )
{
if ( !isFirst )
result.append( ' ' );
- isFirst = FALSE;
+ isFirst = false;
result.append(( *it ) ->simplifiedText() );
}