summaryrefslogtreecommitdiffstats
path: root/src/fileexporterpdf.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/fileexporterpdf.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/fileexporterpdf.cpp')
-rw-r--r--src/fileexporterpdf.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fileexporterpdf.cpp b/src/fileexporterpdf.cpp
index 8f78fe9..5130833 100644
--- a/src/fileexporterpdf.cpp
+++ b/src/fileexporterpdf.cpp
@@ -46,7 +46,7 @@ namespace BibTeX
bool FileExporterPDF::save( TQIODevice* iodevice, const File* bibtexfile, TQStringList *errorLog )
{
m_mutex.lock();
- bool result = FALSE;
+ bool result = false;
m_embeddedFileList.clear();
if ( m_embedFiles )
{
@@ -73,7 +73,7 @@ namespace BibTeX
bool FileExporterPDF::save( TQIODevice* iodevice, const Element* element, TQStringList *errorLog )
{
m_mutex.lock();
- bool result = FALSE;
+ bool result = false;
m_embeddedFileList.clear();
if ( m_embedFiles )
fillEmbeddedFileList( element );
@@ -114,9 +114,9 @@ namespace BibTeX
TQStringList cmdLines = TQStringList::split( '|', "pdflatex -halt-on-error bibtex-to-pdf.tex|bibtex bibtex-to-pdf|pdflatex -halt-on-error bibtex-to-pdf.tex|pdflatex -halt-on-error bibtex-to-pdf.tex" );
if ( writeLatexFile( laTeXFilename ) && runProcesses( cmdLines, errorLog ) && writeFileToIODevice( outputFilename, iodevice ) )
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
bool FileExporterPDF::writeLatexFile( const TQString &filename )
@@ -156,10 +156,10 @@ namespace BibTeX
ts << "\\bibliography{bibtex-to-pdf}\n";
ts << "\\end{document}\n";
latexFile.close();
- return TRUE;
+ return true;
}
else
- return FALSE;
+ return false;
}
void FileExporterPDF::fillEmbeddedFileList( const File* bibtexfile )