diff options
Diffstat (limited to 'tdefile-plugins/ps')
-rw-r--r-- | tdefile-plugins/ps/gscreator.cpp | 16 | ||||
-rw-r--r-- | tdefile-plugins/ps/tdefile_ps.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tdefile-plugins/ps/gscreator.cpp b/tdefile-plugins/ps/gscreator.cpp index c664947b..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; } @@ -241,7 +241,7 @@ bool GSCreator::create(const TQString &path, int width, int height, TQImage &img char translation[64] = ""; char pagesize[32] = ""; char resopt[32] = ""; - std::auto_ptr<KDSCBBOX> bbox = dsc.bbox(); + std::unique_ptr<KDSCBBOX> bbox = dsc.bbox(); if (is_encapsulated) { // GhostScript's rendering at the extremely low resolutions // required for thumbnails leaves something to be desired. To @@ -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 diff --git a/tdefile-plugins/ps/tdefile_ps.h b/tdefile-plugins/ps/tdefile_ps.h index 16f3c56a..4beff5ba 100644 --- a/tdefile-plugins/ps/tdefile_ps.h +++ b/tdefile-plugins/ps/tdefile_ps.h @@ -29,7 +29,7 @@ class TQStringList; class KPSPlugin: public KFilePlugin, public KDSCCommentHandler { - Q_OBJECT + TQ_OBJECT public: KPSPlugin( TQObject *parent, const char *name, |