diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 16:34:47 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 18:26:20 +0900 |
| commit | 0599e57edd9b4998aa99b0a14f4d83c2b9390b29 (patch) | |
| tree | 0f9cf5d922e8c354348e50872fe00aa6ee9136cf /tdefile-plugins/ps/gscreator.cpp | |
| parent | 063aaff4032126e6e0685865142dea3102a6eff7 (diff) | |
| download | tdegraphics-0599e57e.tar.gz tdegraphics-0599e57e.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c7c1795c817c1f7b89046c6d9f24379143f0bf6b)
Diffstat (limited to 'tdefile-plugins/ps/gscreator.cpp')
| -rw-r--r-- | tdefile-plugins/ps/gscreator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tdefile-plugins/ps/gscreator.cpp b/tdefile-plugins/ps/gscreator.cpp index c54b2fc4..05d36224 100644 --- a/tdefile-plugins/ps/gscreator.cpp +++ b/tdefile-plugins/ps/gscreator.cpp @@ -482,23 +482,23 @@ static bool correctDVI(const TQString& filename) { TQFile f(filename); if (!f.open(IO_ReadOnly)) - return FALSE; + return false; unsigned char test[4]; if ( f.readBlock( (char *)test,2)<2 || test[0] != 247 || test[1] != 2 ) - return FALSE; + return false; int n = f.size(); if ( n < 134 ) // Too short for a dvi file - return FALSE; + return false; f.at( n-4 ); unsigned char trailer[4] = { 0xdf,0xdf,0xdf,0xdf }; if ( f.readBlock( (char *)test, 4 )<4 || strncmp( (char *)test, (char*) trailer, 4 ) ) - return FALSE; + return false; // We suppose now that the dvi file is complete and OK - return TRUE; + return true; } bool GSCreator::getEPSIPreview(const TQString &path, long start, long |
