diff options
Diffstat (limited to 'tdefile-plugins/ps/gscreator.cpp')
-rw-r--r-- | tdefile-plugins/ps/gscreator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tdefile-plugins/ps/gscreator.cpp b/tdefile-plugins/ps/gscreator.cpp index 88601a4c..05d36224 100644 --- a/tdefile-plugins/ps/gscreator.cpp +++ b/tdefile-plugins/ps/gscreator.cpp @@ -67,7 +67,7 @@ #include <sys/wait.h> #include <fcntl.h> #include <errno.h> -#include <kdemacros.h> +#include <tdemacros.h> #include <tqcolor.h> #include <tqfile.h> @@ -81,7 +81,7 @@ extern "C" { - KDE_EXPORT ThumbCreator *new_creator() + TDE_EXPORT ThumbCreator *new_creator() { return new GSCreator; } @@ -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 |