From 0700f7a9f7dd672a3806a6c74e07d47e0c6305f4 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 15 Nov 2026 02:00:41 -0300
Subject: Use nullptr in file metadata plugins
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The Poppler-TQt compatibility layer is vendored under tdefile-plugins and belongs with its PDF metadata consumer.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 tdefile-plugins/bmp/tdefile_bmp.cpp                |  2 +-
 tdefile-plugins/dds/tdefile_dds.cpp                |  2 +-
 .../dependencies/poppler-tqt/poppler-document.cpp  | 26 +++++++++++-----------
 .../dependencies/poppler-tqt/poppler-page.cpp      |  4 ++--
 .../dependencies/poppler-tqt/poppler-private.cpp   |  2 +-
 .../dependencies/poppler-tqt/poppler-private.h     |  2 +-
 tdefile-plugins/gif/tdefile_gif.cpp                |  2 +-
 tdefile-plugins/ico/tdefile_ico.cpp                |  2 +-
 tdefile-plugins/jpeg/exif.cpp                      |  4 ++--
 tdefile-plugins/jpeg/tdefile_jpeg.cpp              |  2 +-
 tdefile-plugins/jpeg/tdefile_setcomment.cpp        |  8 +++----
 tdefile-plugins/png/tdefile_png.cpp                |  4 ++--
 tdefile-plugins/pnm/tdefile_pnm.cpp                |  4 ++--
 tdefile-plugins/ps/gscreator.cpp                   | 22 +++++++++---------
 tdefile-plugins/ps/tdefile_ps.cpp                  |  4 ++--
 tdefile-plugins/rgb/tdefile_rgb.cpp                |  2 +-
 tdefile-plugins/tga/tdefile_tga.cpp                |  2 +-
 tdefile-plugins/xbm/tdefile_xbm.cpp                |  2 +-
 tdefile-plugins/xpm/tdefile_xpm.cpp                |  2 +-
 19 files changed, 49 insertions(+), 49 deletions(-)

diff --git a/tdefile-plugins/bmp/tdefile_bmp.cpp b/tdefile-plugins/bmp/tdefile_bmp.cpp
index 2987bfdd..938ae2c8 100644
--- a/tdefile-plugins/bmp/tdefile_bmp.cpp
+++ b/tdefile-plugins/bmp/tdefile_bmp.cpp
@@ -45,7 +45,7 @@ KBmpPlugin::KBmpPlugin(TQObject *parent, const char *name,
 {
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-bmp" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0L;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
 
     group = addGroupInfo(info, "Technical", i18n("Technical Details"));
 
diff --git a/tdefile-plugins/dds/tdefile_dds.cpp b/tdefile-plugins/dds/tdefile_dds.cpp
index 4a57bd45..9546f4a4 100644
--- a/tdefile-plugins/dds/tdefile_dds.cpp
+++ b/tdefile-plugins/dds/tdefile_dds.cpp
@@ -187,7 +187,7 @@ KDdsPlugin::KDdsPlugin(TQObject *parent, const char *name, const TQStringList &a
 {
     KFileMimeTypeInfo * info = addMimeTypeInfo( "image/x-dds" );
 
-    KFileMimeTypeInfo::GroupInfo * group = 0L;
+    KFileMimeTypeInfo::GroupInfo * group = nullptr;
 
     group = addGroupInfo(info, "Technical", i18n("Technical Details"));
 
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp
index a7c855d0..69349788 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cpp
@@ -53,7 +53,7 @@ Document *Document::load(const TQString &filePath)
 # if (POPPLER_VERSION_C >= 22003000)
   DocumentData *doc = new DocumentData(std::make_unique<GooString>(TQFile::encodeName(filePath)), {});
 # else
-  DocumentData *doc = new DocumentData(new GooString(TQFile::encodeName(filePath)), NULL);
+  DocumentData *doc = new DocumentData(new GooString(TQFile::encodeName(filePath)), nullptr);
 # endif
   Document *pdoc;
   if (doc->doc.isOk() || doc->doc.getErrorCode() == errEncrypted) {
@@ -66,7 +66,7 @@ Document *Document::load(const TQString &filePath)
     return pdoc;
   }
   else
-    return NULL;
+    return nullptr;
 }
 
 Document::Document(DocumentData *dataA)
@@ -147,7 +147,7 @@ bool Document::scanForFonts( int numPages, TQValueList<FontInfo> *fontList ) con
   FONTS_LIST_TYPE items = data->m_fontInfoScanner->scan( numPages );
 
 #if (POPPLER_VERSION_C < 82000)
-  if ( NULL == items )
+  if ( !items )
     return false;
 #endif
 #if (POPPLER_VERSION_C < 76000)
@@ -192,7 +192,7 @@ TQString Document::getInfo( const TQString & type ) const
   // [Albert] Code adapted from pdfinfo.cpp on xpdf
   Object info;
   if ( data->locked )
-    return NULL;
+    return nullptr;
 
 # if (POPPLER_VERSION_C >= 58000)
   info = data->doc.getDocInfo();
@@ -200,7 +200,7 @@ TQString Document::getInfo( const TQString & type ) const
   data->doc.getDocInfo( &info );
 # endif
   if ( !info.isDict() )
-    return NULL;
+    return nullptr;
 
   TQString result;
   Object obj;
@@ -266,7 +266,7 @@ TQString Document::getInfo( const TQString & type ) const
   obj.free();
   info.free();
 # endif
-  return NULL;
+  return nullptr;
 }
 
 /* borrowed from kpdf */
@@ -378,11 +378,11 @@ TQDomDocument *Document::toc() const
 {
   Outline * outline = data->doc.getOutline();
   if ( !outline )
-    return NULL;
+    return nullptr;
 
   OUTLINE_ITEMS_TYPE * items = outline->getItems();
   if ( !items || OUTLINE_ITEMS_LENGTH(items) < 1 )
-    return NULL;
+    return nullptr;
 
   TQDomDocument *toc = new TQDomDocument();
   if ( OUTLINE_ITEMS_LENGTH(items) > 0 )
@@ -394,7 +394,7 @@ TQDomDocument *Document::toc() const
 LinkDestination *Document::linkDestination( const TQString &name )
 {
   GooString * namedDest = TQStringToGooString( name );
-  LinkDestinationData ldd(NULL, namedDest, data);
+  LinkDestinationData ldd(nullptr, namedDest, data);
   LinkDestination *ld = new LinkDestination(ldd);
   delete namedDest;
   return ld;
@@ -413,13 +413,13 @@ bool Document::print(const TQString &file, TQValueList<int> pageList, double hDP
   for (it = pageList.begin();  it != pageList.end();  ++it ) {
 	pages.push_back(*it);
   }
-  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, pages, psModePS, paperWidth, paperHeight);
+  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), nullptr, pages, psModePS, paperWidth, paperHeight);
 #elif (POPPLER_VERSION_C >= 20000)
-  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
+  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), nullptr, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
 #elif (POPPLER_VERSION_C >= 16000)
-  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
+  PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), nullptr, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
 #else
-  PSOutputDev *psOut = new PSOutputDev(file.latin1(), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
+  PSOutputDev *psOut = new PSOutputDev(file.latin1(), data->doc.getXRef(), data->doc.getCatalog(), nullptr, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
 #endif
 
   if (psOut->isOk()) {
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp
index 496da0eb..64c2c0dd 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp
@@ -109,7 +109,7 @@ TQImage Page::renderToImage(double xres, double yres, bool doLinks) const
   TQImage img( dataPtr, bw, bh, 32, 0, 0, TQImage::IgnoreEndian );
   img = img.copy();
   // unload underlying xpdf bitmap
-  output_dev->startPage( 0, NULL );
+  output_dev->startPage( 0, nullptr );
 
   return img;
 #else
@@ -311,7 +311,7 @@ TQValueList<Link*> Page::links() const
 
     if (!xpdfLink->isOk()) continue;
 
-    Link *popplerLink = NULL;
+    Link *popplerLink = nullptr;
     ::LinkAction *a = xpdfLink->getAction();
     if ( a )
     {
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp
index 16312a34..d49e791f 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp
@@ -154,7 +154,7 @@ void DocumentData::addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, O
             }
             else if ( destination && destination->isOk() )
             {
-                LinkDestinationData ldd(destination, NULL, this);
+                LinkDestinationData ldd(destination, nullptr, this);
                 item.setAttribute( "Destination", LinkDestination(ldd).toString() );
             }
             if ( a->getKind() == actionGoToR )
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
index 8e411d1d..172ce5d1 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
@@ -77,7 +77,7 @@ class OutlineItem;
 #define OUTLINE_ITEMS_LENGTH(goo) goo->getLength()
 #define FONTS_LIST_TYPE GooList*
 #define FONTS_LIST_LENGTH(goo) goo->getLength()
-#define FONTS_LIST_IS_EMPTY(goo) (goo == NULL || goo->getLength() == 0)
+#define FONTS_LIST_IS_EMPTY(goo) (goo == nullptr || goo->getLength() == 0)
 #define FONTS_LIST_GET(goo, i) (::FontInfo*)goo->get(i)
 #define FIND_PAGE_ARGS(ref)	ref.num, ref.gen
 #endif
diff --git a/tdefile-plugins/gif/tdefile_gif.cpp b/tdefile-plugins/gif/tdefile_gif.cpp
index 3a03813b..52ddcfc4 100644
--- a/tdefile-plugins/gif/tdefile_gif.cpp
+++ b/tdefile-plugins/gif/tdefile_gif.cpp
@@ -50,7 +50,7 @@ KGifPlugin::KGifPlugin(TQObject *parent, const char *name,
 
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/gif" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0L;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
 
     group = addGroupInfo(info, "General", i18n("General"));
 
diff --git a/tdefile-plugins/ico/tdefile_ico.cpp b/tdefile-plugins/ico/tdefile_ico.cpp
index a574c495..ada9ac49 100644
--- a/tdefile-plugins/ico/tdefile_ico.cpp
+++ b/tdefile-plugins/ico/tdefile_ico.cpp
@@ -45,7 +45,7 @@ KIcoPlugin::KIcoPlugin(TQObject *parent, const char *name,
 {
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-ico" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0L;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
 
     group = addGroupInfo(info, "Technical", i18n("Technical Details"));
 
diff --git a/tdefile-plugins/jpeg/exif.cpp b/tdefile-plugins/jpeg/exif.cpp
index d50ecaf6..f7b5ff38 100644
--- a/tdefile-plugins/jpeg/exif.cpp
+++ b/tdefile-plugins/jpeg/exif.cpp
@@ -284,7 +284,7 @@ int ExifData::ReadJpegSections (TQFile & infile, ReadMode_t ReadMode)
 
                     size = kMax( 0ul, (unsigned long)(infile.size()-infile.at()) );
                     Data = (uchar *)malloc(size);
-                    if (Data == NULL){
+                    if (!Data){
                         throw FatalError("could not allocate data for entire image");
                     }
 
@@ -941,7 +941,7 @@ bool ExifData::isThumbnailSane() {
 // only if it seems sane
 //--------------------------------------------------------------------------
 TQImage ExifData::getThumbnail() {
-  if (!isThumbnailSane()) return NULL;
+  if (!isThumbnailSane()) return nullptr;
   if (!Orientation || Orientation == 1) return Thumbnail;
 
   // now fix orientation
diff --git a/tdefile-plugins/jpeg/tdefile_jpeg.cpp b/tdefile-plugins/jpeg/tdefile_jpeg.cpp
index 12c6eca5..f930c5d2 100644
--- a/tdefile-plugins/jpeg/tdefile_jpeg.cpp
+++ b/tdefile-plugins/jpeg/tdefile_jpeg.cpp
@@ -155,7 +155,7 @@ TQValidator* KJpegPlugin::createValidator(const KFileMetaInfoItem& /*item*/,
 //     if (item.isEditable())
 //         return new TQRegExpValidator(TQRegExp(".*"), parent, name);
 //     else
-    return 0L;
+    return nullptr;
 }
 
 bool KJpegPlugin::writeInfo( const KFileMetaInfo& info ) const
diff --git a/tdefile-plugins/jpeg/tdefile_setcomment.cpp b/tdefile-plugins/jpeg/tdefile_setcomment.cpp
index 07dca273..1cc7a1c8 100644
--- a/tdefile-plugins/jpeg/tdefile_setcomment.cpp
+++ b/tdefile-plugins/jpeg/tdefile_setcomment.cpp
@@ -401,7 +401,7 @@ struct stat  statbuf;
    * NB: I hate these stupid string functions in C... the buffer length is too
    * hard to manage...
    */
-  outfile = NULL;
+  outfile = nullptr;
   temp_filename_length = strlen( original_filename) + 4;
   temp_filename = (char *)calloc( temp_filename_length, 1 );
   for( i=0; i<10; i++ ) {
@@ -421,7 +421,7 @@ struct stat  statbuf;
   /*
    * Let's rock and roll! 
    */
-  if ((infile = fopen(original_filename, READ_BINARY)) == NULL) {
+  if (!(infile = fopen(original_filename, READ_BINARY))) {
     fprintf(stderr, "can't open input file %s\n", original_filename);
     free(temp_filename);
     return(ERROR_NOT_A_JPEG);
@@ -499,7 +499,7 @@ main (int argc, char **argv)
 
     /* Process command line arguments... */
     progname = argv[0];
-    if (progname == NULL || progname[0] == 0)
+    if (!progname || progname[0] == 0)
         progname = "writejpgcomment";  /* in case C library doesn't provide it */
     if( argc != 3) {
         fprintf(stderr, "Usage: %s <filename> \"<comment>\"\nOverwrites the comment in a image file with the given comment.\n", progname);
@@ -510,7 +510,7 @@ main (int argc, char **argv)
 
 
     /* Check if file is readable... */
-    if ((fp = fopen(filename, READ_BINARY)) == NULL) {
+    if (!(fp = fopen(filename, READ_BINARY))) {
       fprintf(stderr, "Error: Can't open file %s\n", filename);
       fclose(fp);
       return(5);
diff --git a/tdefile-plugins/png/tdefile_png.cpp b/tdefile-plugins/png/tdefile_png.cpp
index 0a48b949..c339171d 100644
--- a/tdefile-plugins/png/tdefile_png.cpp
+++ b/tdefile-plugins/png/tdefile_png.cpp
@@ -96,8 +96,8 @@ KPngPlugin::KPngPlugin(TQObject *parent, const char *name,
     // set up our mime type
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/png" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0;
-    KFileMimeTypeInfo::ItemInfo* item = 0;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
+    KFileMimeTypeInfo::ItemInfo* item = nullptr;
 
     // comment group
     group = addGroupInfo(info, "Comment", i18n("Comment"));
diff --git a/tdefile-plugins/pnm/tdefile_pnm.cpp b/tdefile-plugins/pnm/tdefile_pnm.cpp
index c9bb065e..9c13562c 100644
--- a/tdefile-plugins/pnm/tdefile_pnm.cpp
+++ b/tdefile-plugins/pnm/tdefile_pnm.cpp
@@ -44,8 +44,8 @@ void KPnmPlugin::makeMimeTypeInfo(const TQString& mimetype)
 {
 	KFileMimeTypeInfo* info = addMimeTypeInfo( mimetype );
 
-	KFileMimeTypeInfo::GroupInfo* group = 0;
-	KFileMimeTypeInfo::ItemInfo* item = 0;
+	KFileMimeTypeInfo::GroupInfo* group = nullptr;
+	KFileMimeTypeInfo::ItemInfo* item = nullptr;
 
 	group = addGroupInfo(info, "General", i18n("General"));
 
diff --git a/tdefile-plugins/ps/gscreator.cpp b/tdefile-plugins/ps/gscreator.cpp
index 05d36224..f3fb07f9 100644
--- a/tdefile-plugins/ps/gscreator.cpp
+++ b/tdefile-plugins/ps/gscreator.cpp
@@ -117,12 +117,12 @@ static const char * gsargs_ps[] = {
     "-dLastPage=1",
     "-q",
     "-",
-    0, // file name
+    nullptr, // file name
     "-c",
     "showpage",
     "-c",
     "quit",
-    0
+    nullptr
 };
 
 static const char * gsargs_eps[] = {
@@ -132,11 +132,11 @@ static const char * gsargs_eps[] = {
     "-dSAFER",
     "-dPARANOIDSAFER",
     "-dNOPAUSE",
-    0, // page size
-    0, // resolution
+    nullptr, // page size
+    nullptr, // resolution
     "-q",
     "-",
-    0, // file name
+    nullptr, // file name
     "-c",
     "pagelevel",
     "-c",
@@ -147,7 +147,7 @@ static const char * gsargs_eps[] = {
     "showpage",
     "-c",
     "quit",
-    0
+    nullptr
 };
 
 static const char *dvipsargs[] = {
@@ -157,8 +157,8 @@ static const char *dvipsargs[] = {
     "-q",
     "-o",
     "-",
-    0, // file name
-    0
+    nullptr, // file name
+    nullptr
 };
 
 static bool correctDVI(const TQString& filename);
@@ -217,7 +217,7 @@ bool GSCreator::create(const TQString &path, int width, int height, TQImage &img
   if (no_dvi)
   {
     FILE* fp = fopen(TQFile::encodeName(path), "r");
-    if (fp == 0) return false;
+    if (!fp) return false;
 
     char buf[4096];
     int count;
@@ -404,7 +404,7 @@ bool GSCreator::create(const TQString &path, int width, int height, TQImage &img
 	  tv.tv_usec = 0;
 
 	  got_sig_term = false;
-	  if (select(output[0] + 1, &fds, 0, 0, &tv) <= 0) {
+	  if (select(output[0] + 1, &fds, nullptr, nullptr, &tv) <= 0) {
             if ( ( errno == EINTR || errno == EAGAIN ) && !got_sig_term ) continue;
 	    break; // error, timeout or master wants us to quit (SIGTERM)
           }
@@ -506,7 +506,7 @@ bool GSCreator::getEPSIPreview(const TQString &path, long start, long
 {
   FILE *fp;
   fp = fopen(TQFile::encodeName(path), "r");
-  if (fp == 0) return false;
+  if (!fp) return false;
 
   const long previewsize = end - start + 1;
 
diff --git a/tdefile-plugins/ps/tdefile_ps.cpp b/tdefile-plugins/ps/tdefile_ps.cpp
index 87b653d3..87439823 100644
--- a/tdefile-plugins/ps/tdefile_ps.cpp
+++ b/tdefile-plugins/ps/tdefile_ps.cpp
@@ -64,7 +64,7 @@ bool KPSPlugin::readInfo( KFileMetaInfo& info, uint /* what */)
     _dsc = new KDSC;
     _dsc->setCommentHandler( this );
     FILE* fp = fopen( TQFile::encodeName( info.path() ), "r" );
-    if( fp == 0 )
+    if( !fp )
         return false;
     
     char buf[4096];
@@ -75,7 +75,7 @@ bool KPSPlugin::readInfo( KFileMetaInfo& info, uint /* what */)
     }
     fclose( fp );
     delete _dsc;
-    _dsc = 0;
+    _dsc = nullptr;
 
     return _setData > 0;
 }  
diff --git a/tdefile-plugins/rgb/tdefile_rgb.cpp b/tdefile-plugins/rgb/tdefile_rgb.cpp
index e503e438..2167b590 100644
--- a/tdefile-plugins/rgb/tdefile_rgb.cpp
+++ b/tdefile-plugins/rgb/tdefile_rgb.cpp
@@ -37,7 +37,7 @@ KRgbPlugin::KRgbPlugin(TQObject *parent, const char *name, const TQStringList &a
 {
 	KFileMimeTypeInfo* info = addMimeTypeInfo("image/x-rgb");
 
-	KFileMimeTypeInfo::GroupInfo* group = 0;
+	KFileMimeTypeInfo::GroupInfo* group = nullptr;
 	KFileMimeTypeInfo::ItemInfo* item;
 
 
diff --git a/tdefile-plugins/tga/tdefile_tga.cpp b/tdefile-plugins/tga/tdefile_tga.cpp
index cb93e5be..75bffa06 100644
--- a/tdefile-plugins/tga/tdefile_tga.cpp
+++ b/tdefile-plugins/tga/tdefile_tga.cpp
@@ -45,7 +45,7 @@ KTgaPlugin::KTgaPlugin(TQObject *parent, const char *name,
 {
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-targa" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0L;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
 
     group = addGroupInfo(info, "Technical", i18n("Technical Details"));
 
diff --git a/tdefile-plugins/xbm/tdefile_xbm.cpp b/tdefile-plugins/xbm/tdefile_xbm.cpp
index dde1c044..eab062ce 100644
--- a/tdefile-plugins/xbm/tdefile_xbm.cpp
+++ b/tdefile-plugins/xbm/tdefile_xbm.cpp
@@ -45,7 +45,7 @@ KXbmPlugin::KXbmPlugin(TQObject *parent, const char *name,
 {
     KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-xbm" );
 
-    KFileMimeTypeInfo::GroupInfo* group = 0L;
+    KFileMimeTypeInfo::GroupInfo* group = nullptr;
 
     group = addGroupInfo(info, "Technical", i18n("Technical Details"));
 
diff --git a/tdefile-plugins/xpm/tdefile_xpm.cpp b/tdefile-plugins/xpm/tdefile_xpm.cpp
index 46b07e51..3b8dcf59 100644
--- a/tdefile-plugins/xpm/tdefile_xpm.cpp
+++ b/tdefile-plugins/xpm/tdefile_xpm.cpp
@@ -38,7 +38,7 @@ xpmPlugin::xpmPlugin(TQObject *parent, const char *name, const TQStringList &arg
   KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-xpm" );
 
   // our new group
-  KFileMimeTypeInfo::GroupInfo* group = 0;
+  KFileMimeTypeInfo::GroupInfo* group = nullptr;
   group = addGroupInfo(info, "xpmInfo", i18n("X PixMap File Information"));
 
   KFileMimeTypeInfo::ItemInfo* item;
-- 
cgit v1.2.3

