summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-24 03:08:14 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-24 03:08:20 +0200
commit208d93bf75a4a1486f6f94c34e71638a961e8645 (patch)
treeb36ddf7faadb5818ba9e748e2e67c229112827b6 /tdecore
parent2a415f233fac3fb5801a544e670f1ec12429aa2a (diff)
downloadtdelibs-208d93bf75a4a1486f6f94c34e71638a961e8645.tar.gz
tdelibs-208d93bf75a4a1486f6f94c34e71638a961e8645.zip
Add new build option WITH_TDEICONLOADER_DEBUG
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kiconloader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/kiconloader.cpp b/tdecore/kiconloader.cpp
index 59f3e0646..df233cec1 100644
--- a/tdecore/kiconloader.cpp
+++ b/tdecore/kiconloader.cpp
@@ -109,9 +109,9 @@ struct TDEIconGroup
// WARNING
// Enabling this in production will cause a massive slowdown of (and a related memory leak in)
// any application that creates and destroys large numbers of TDEIconLoader instances
-//#define KICONLOADER_CHECKS
+//#define TDEICONLOADER_DEBUG
-#ifdef KICONLOADER_CHECKS
+#ifdef TDEICONLOADER_DEBUG
// Keep a list of recently created and destroyed TDEIconLoader instances in order
// to detect bugs like #68528.
struct TDEIconLoaderDebug
@@ -133,7 +133,7 @@ static TQValueList< TDEIconLoaderDebug > *kiconloaders;
TDEIconLoader::TDEIconLoader(const TQString& _appname, TDEStandardDirs *_dirs)
{
-#ifdef KICONLOADER_CHECKS
+#ifdef TDEICONLOADER_DEBUG
if( kiconloaders == NULL )
kiconloaders = new TQValueList< TDEIconLoaderDebug>();
// check for the (very unlikely case) that new TDEIconLoader gets allocated
@@ -266,7 +266,7 @@ void TDEIconLoader::init( const TQString& _appname, TDEStandardDirs *_dirs )
TDEIconLoader::~TDEIconLoader()
{
-#ifdef KICONLOADER_CHECKS
+#ifdef TDEICONLOADER_DEBUG
for( TQValueList< TDEIconLoaderDebug >::Iterator it = kiconloaders->begin();
it != kiconloaders->end();
++it )
@@ -1233,7 +1233,7 @@ TDEIconFactory::TDEIconFactory( const TQString& iconName_P, TDEIcon::Group group
TQPixmap* TDEIconFactory::createPixmap( const TQIconSet&, TQIconSet::Size, TQIconSet::Mode mode_P, TQIconSet::State )
{
-#ifdef KICONLOADER_CHECKS
+#ifdef TDEICONLOADER_DEBUG
bool found = false;
for( TQValueList< TDEIconLoaderDebug >::Iterator it = kiconloaders->begin();
it != kiconloaders->end();