[Libreoffice-commits] core.git: vcl/source

Arnaud Versini arnaud.versini at libreoffice.org
Wed Dec 4 02:50:49 PST 2013


 vcl/source/app/dbggui.cxx     |   64 --------------
 vcl/source/app/settings.cxx   |   13 ---
 vcl/source/gdi/animate.cxx    |    4 
 vcl/source/gdi/font.cxx       |   40 ---------
 vcl/source/gdi/gradient.cxx   |   20 ----
 vcl/source/gdi/hatch.cxx      |   13 ---
 vcl/source/gdi/image.cxx      |   37 --------
 vcl/source/gdi/jobset.cxx     |    9 --
 vcl/source/gdi/lineinfo.cxx   |   18 ----
 vcl/source/gdi/mapmod.cxx     |   16 ---
 vcl/source/gdi/outdev.cxx     |   41 ---------
 vcl/source/gdi/outdev2.cxx    |   16 ---
 vcl/source/gdi/outdev3.cxx    |   40 ---------
 vcl/source/gdi/outdev4.cxx    |   10 --
 vcl/source/gdi/outdev5.cxx    |    6 -
 vcl/source/gdi/outdev6.cxx    |    5 -
 vcl/source/gdi/outmap.cxx     |   39 ---------
 vcl/source/gdi/region.cxx     |    6 -
 vcl/source/gdi/regionband.cxx |   44 ----------
 vcl/source/gdi/wall.cxx       |   25 -----
 vcl/source/window/accel.cxx   |   14 ---
 vcl/source/window/accmgr.cxx  |    7 -
 vcl/source/window/menu.cxx    |    4 
 vcl/source/window/toolbox.cxx |    9 --
 vcl/source/window/window.cxx  |  181 ------------------------------------------
 vcl/source/window/window2.cxx |   66 ---------------
 26 files changed, 4 insertions(+), 743 deletions(-)

New commits:
commit c0125d64cbf8adcf070d0bf715e98e57fbeecf8c
Author: Arnaud Versini <arnaud.versini at libreoffice.org>
Date:   Sun Nov 24 19:54:30 2013 +0100

    VCL : Remove usage of DBG_CTOR and DBG_DTOR.
    
    Valgrind is capable of detecting such bugs. No need for extra macros.
    
    Change-Id: I6a785b42be72736560ec69f1a7949f2f0b9414a3
    Reviewed-on: https://gerrit.libreoffice.org/6805
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx
index 69ee0c7..d03bb88 100644
--- a/vcl/source/app/dbggui.cxx
+++ b/vcl/source/app/dbggui.cxx
@@ -68,46 +68,6 @@ static const sal_Char* pDbgHelpText[] =
 "------------------------------------------\n",
 "\n",
 "--- Macros ---\n",
-"DBG_NAME( aName )\n",
-"Defines the administration data for a class. This macro may only be used "
-" in a source file with the same name.\n",
-"\n",
-"DBG_NAMEEX( aName )\n",
-"Like DBG_NAME, only for other source files.\n",
-"\n",
-"DBG_CTOR( aName, fTest )\n",
-"Must be used in all constructors of a class (also in the CopyCtor). "
-"The first parameter must be the registered name (best would be the "
-"class name) and the second parameter the test function or 0.\n",
-"\n",
-"DBG_DTOR( aName, fTest )\n",
-"Must be used in the destructor of the class. The first parameter is "
-"the registered name and the second parameter is the test function or "
-"0.\n",
-"\n",
-"DBG_CHKTHIS( aName, fTest )\n",
-"Can be used in methods of the class when constructors and the "
-"desctructor of the class are equiped with the corresponding macros. "
-"The first parameter is the registered name, the second parameter is "
-"the test function or 0.\n",
-"\n",
-"DBG_CHKOBJ( pObj, aName, fTest )\n",
-"Can be used on instances of a class where the constructors and the "
-"destructor of the class are equiped with the corresponding macros. "
-"The first parameter is the registered name, the second parameter is "
-"the test function or 0.\n",
-"\n",
-"To make the macros work DBG_UTIL must be defined.\n",
-"\n",
-"--- Options ---\n",
-"This\n",
-"The This pointer is validated. This way all objects that are equiped "
-"with it can be tested to make sure one is working with existing objects. "
-"This way it's easier to find bugs in case of multiple inheritence, "
-"alignment or compiler errors. Since almost all standard classes of SV "
-"(String, List, Pen, Brush, Polygon, ...) are equiped with DBG_CHKTHIS() "
-"a lot of errors are found, although this test will impact performance "
-"accordingly.\n",
 "\n",
 "Function\n",
 "When a function is passed with macros, it will be called.\n",
@@ -115,18 +75,6 @@ static const sal_Char* pDbgHelpText[] =
 "Exit\n",
 "This- and Func-Test will also run when exiting the function.\n",
 "\n",
-"Report\n",
-"At the end of the program the number of generated objects is produced "
-"as output. Because all important SV classes have at least DBG_CTOR() / "
-"DBG_DTOR() it can checked so called resource leaks (system objects which "
-" are not freed) exist. These include OutputDevice, Window, VirtualDevice, "
-" Printer and Menu. Note: Dtor calls of static objects are not taken into "
-" account. Therefor each SV program leaves 2 strings and a bitmap behind.\n",
-"\n",
-"Trace\n",
-"Creation, destruction and usage of objects which are equiped with "
-"DBG_XTOR is logged.\n",
-"\n",
 "\n",
 "\nOther tests and macros\n",
 "------------------------------------------\n",
@@ -137,7 +85,6 @@ static const sal_Char* pDbgHelpText[] =
 "and the time this took (including calls to children) in milliseconds is "
 "output. These macros can be used to check the same function runs over the "
 "entire development period, for example the startup speed. The registered name "
-"which was registered with DBG_NAME() must be passed to the macros.\n",
 "\n",
 "Resources\n",
 "In case of resource errors an error dialog is produced before the "
@@ -293,7 +240,6 @@ static const sal_Char* pDbgHelpText[] =
 "Example\n",
 "------------------------------------------\n",
 "\n",
-"DBG_NAME( String );\n",
 "\n",
 "#ifdef DBG_UTIL\n",
 "const sal_Char* DbgCheckString( const void* pString )\n",
@@ -309,31 +255,21 @@ static const sal_Char* pDbgHelpText[] =
 "\n",
 "String::String()\n",
 "{\n",
-"    DBG_CTOR( String, DbgCheckString );\n",
 "    // ...\n",
 "}\n",
 "\n",
 "String::~String()\n",
 "{\n",
-"    DBG_DTOR( String, DbgCheckString );\n",
 "    //...\n",
 "}\n",
 "\n",
 "char& String::operator [] ( sal_uInt16 nIndex )\n",
 "{\n",
-"    DBG_CHKTHIS( String, DbgCheckString );\n",
 "    DBG_ASSERT( nIndex <= pData->nLen, \"String::[] : nIndex > Len\" );\n",
 "\n",
 "    //...\n",
 "}\n",
 "\n",
-"sal_uInt16 String::Search( const String& rStr, sal_uInt16 nIndex ) const\n",
-"{\n",
-"    DBG_CHKTHIS( String, DbgCheckString );\n",
-"    DBG_CHKOBJ( &rStr, String, DbgCheckString );\n",
-"\n",
-"    //...\n",
-"}",
 "\n",
 NULL
 };
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index a5dfdce..4995e6d 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -50,7 +50,6 @@ using namespace ::com::sun::star;
 #include "impimagetree.hxx"
 // =======================================================================
 
-DBG_NAME( AllSettings )
 
 // =======================================================================
 
@@ -1393,7 +1392,6 @@ ImplAllSettingsData::~ImplAllSettingsData()
 
 AllSettings::AllSettings()
 {
-    DBG_CTOR( AllSettings, NULL );
 
     mpData = new ImplAllSettingsData();
 }
@@ -1402,7 +1400,6 @@ AllSettings::AllSettings()
 
 AllSettings::AllSettings( const AllSettings& rSet )
 {
-    DBG_CTOR( AllSettings, NULL );
     DBG_ASSERT( rSet.mpData->mnRefCount < 0xFFFFFFFE, "Settings: RefCount overflow" );
 
     // copy shared instance data and increse reference counter
@@ -1414,7 +1411,6 @@ AllSettings::AllSettings( const AllSettings& rSet )
 
 AllSettings::~AllSettings()
 {
-    DBG_DTOR( AllSettings, NULL );
 
     // if last reference then delete data
     if ( mpData->mnRefCount == 1 )
@@ -1428,8 +1424,6 @@ AllSettings::~AllSettings()
 const AllSettings& AllSettings::operator =( const AllSettings& rSet )
 {
     DBG_ASSERT( rSet.mpData->mnRefCount < 0xFFFFFFFE, "AllSettings: RefCount overflow" );
-    DBG_CHKTHIS( AllSettings, NULL );
-    DBG_CHKOBJ( &rSet, AllSettings, NULL );
 
     // increase reference counter first, to be able to assign oneself
     rSet.mpData->mnRefCount++;
@@ -1449,7 +1443,6 @@ const AllSettings& AllSettings::operator =( const AllSettings& rSet )
 
 void AllSettings::CopyData()
 {
-    DBG_CHKTHIS( AllSettings, NULL );
 
     // copy if other references exist
     if ( mpData->mnRefCount != 1 )
@@ -1463,8 +1456,6 @@ void AllSettings::CopyData()
 
 sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
 {
-    DBG_CHKTHIS( AllSettings, NULL );
-    DBG_CHKOBJ( &rSet, AllSettings, NULL );
 
     sal_uLong nChangeFlags = 0;
 
@@ -1529,8 +1520,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
 
 sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const
 {
-    DBG_CHKTHIS( AllSettings, NULL );
-    DBG_CHKOBJ( &rSet, AllSettings, NULL );
 
     sal_uLong nChangeFlags = 0;
 
@@ -1556,8 +1545,6 @@ sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const
 
 sal_Bool AllSettings::operator ==( const AllSettings& rSet ) const
 {
-    DBG_CHKTHIS( AllSettings, NULL );
-    DBG_CHKOBJ( &rSet, AllSettings, NULL );
 
     if ( mpData == rSet.mpData )
         return sal_True;
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 3e2c26d..a43bd15 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -27,7 +27,6 @@
 #include <impanmvw.hxx>
 #include <vcl/dibtools.hxx>
 
-DBG_NAME( Animation )
 
 #define MIN_TIMEOUT 2L
 #define INC_TIMEOUT 0L
@@ -72,7 +71,6 @@ Animation::Animation() :
     mbLoopTerminated    ( sal_False ),
     mbIsWaiting         ( sal_False )
 {
-    DBG_CTOR( Animation, NULL );
     maTimer.SetTimeoutHdl( LINK( this, Animation, ImplTimeoutHdl ) );
 }
 
@@ -86,7 +84,6 @@ Animation::Animation( const Animation& rAnimation ) :
     mbLoopTerminated    ( rAnimation.mbLoopTerminated ),
     mbIsWaiting         ( rAnimation.mbIsWaiting )
 {
-    DBG_CTOR( Animation, NULL );
 
     for( size_t i = 0, nCount = rAnimation.maList.size(); i < nCount; i++ )
         maList.push_back( new AnimationBitmap( *rAnimation.maList[ i ] ) );
@@ -97,7 +94,6 @@ Animation::Animation( const Animation& rAnimation ) :
 
 Animation::~Animation()
 {
-    DBG_DTOR( Animation, NULL );
 
     if( mbIsInAnimation )
         Stop();
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
index f22c199..9d0cee1 100644
--- a/vcl/source/gdi/font.cxx
+++ b/vcl/source/gdi/font.cxx
@@ -37,7 +37,6 @@
 
 using namespace vcl;
 
-DBG_NAME( Font )
 
 Impl_Font::Impl_Font() :
     maColor( COL_TRANSPARENT ),
@@ -228,7 +227,6 @@ void Font::MakeUnique()
 
 Font::Font()
 {
-    DBG_CTOR( Font, NULL );
 
     static Impl_Font aStaticImplFont;
     // RefCount is zero for static objects
@@ -238,8 +236,6 @@ Font::Font()
 
 Font::Font( const Font& rFont )
 {
-    DBG_CTOR( Font, NULL );
-    DBG_CHKOBJ( &rFont, Font, NULL );
     bool bRefIncrementable = rFont.mpImplFont->mnRefCount < ::std::numeric_limits<FontRefCount>::max();
     DBG_ASSERT( bRefIncrementable, "Font: RefCount overflow" );
 
@@ -251,7 +247,6 @@ Font::Font( const Font& rFont )
 
 Font::Font( const OUString& rFamilyName, const Size& rSize )
 {
-    DBG_CTOR( Font, NULL );
 
     mpImplFont               = new Impl_Font;
     mpImplFont->maFamilyName = rFamilyName;
@@ -260,7 +255,6 @@ Font::Font( const OUString& rFamilyName, const Size& rSize )
 
 Font::Font( const OUString& rFamilyName, const OUString& rStyleName, const Size& rSize )
 {
-    DBG_CTOR( Font, NULL );
 
     mpImplFont              = new Impl_Font;
     mpImplFont->maFamilyName= rFamilyName;
@@ -270,7 +264,6 @@ Font::Font( const OUString& rFamilyName, const OUString& rStyleName, const Size&
 
 Font::Font( FontFamily eFamily, const Size& rSize )
 {
-    DBG_CTOR( Font, NULL );
 
     mpImplFont              = new Impl_Font;
     mpImplFont->meFamily    = eFamily;
@@ -279,7 +272,6 @@ Font::Font( FontFamily eFamily, const Size& rSize )
 
 Font::~Font()
 {
-    DBG_DTOR( Font, NULL );
 
     // decrement reference counter and delete if last reference
     // if the object is not static (Refcounter==0)
@@ -294,7 +286,6 @@ Font::~Font()
 
 void Font::SetColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maColor != rColor )
     {
@@ -305,7 +296,6 @@ void Font::SetColor( const Color& rColor )
 
 void Font::SetFillColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     MakeUnique();
     mpImplFont->maFillColor = rColor;
@@ -315,7 +305,6 @@ void Font::SetFillColor( const Color& rColor )
 
 void Font::SetTransparent( sal_Bool bTransparent )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mbTransparent != bTransparent )
     {
@@ -326,7 +315,6 @@ void Font::SetTransparent( sal_Bool bTransparent )
 
 void Font::SetAlign( FontAlign eAlign )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meAlign != eAlign )
     {
@@ -337,7 +325,6 @@ void Font::SetAlign( FontAlign eAlign )
 
 void Font::SetName( const OUString& rFamilyName )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     MakeUnique();
     mpImplFont->maFamilyName = rFamilyName;
@@ -345,7 +332,6 @@ void Font::SetName( const OUString& rFamilyName )
 
 void Font::SetStyleName( const OUString& rStyleName )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     MakeUnique();
     mpImplFont->maStyleName = rStyleName;
@@ -353,7 +339,6 @@ void Font::SetStyleName( const OUString& rStyleName )
 
 void Font::SetSize( const Size& rSize )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maSize != rSize )
     {
@@ -364,7 +349,6 @@ void Font::SetSize( const Size& rSize )
 
 void Font::SetFamily( FontFamily eFamily )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meFamily != eFamily )
     {
@@ -375,7 +359,6 @@ void Font::SetFamily( FontFamily eFamily )
 
 void Font::SetCharSet( rtl_TextEncoding eCharSet )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meCharSet != eCharSet )
     {
@@ -386,7 +369,6 @@ void Font::SetCharSet( rtl_TextEncoding eCharSet )
 
 void Font::SetLanguageTag( const LanguageTag& rLanguageTag )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maLanguageTag != rLanguageTag )
     {
@@ -397,7 +379,6 @@ void Font::SetLanguageTag( const LanguageTag& rLanguageTag )
 
 void Font::SetCJKContextLanguageTag( const LanguageTag& rLanguageTag )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maCJKLanguageTag != rLanguageTag )
     {
@@ -408,7 +389,6 @@ void Font::SetCJKContextLanguageTag( const LanguageTag& rLanguageTag )
 
 void Font::SetLanguage( LanguageType eLanguage )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maLanguageTag.getLanguageType( false) != eLanguage )
     {
@@ -419,7 +399,6 @@ void Font::SetLanguage( LanguageType eLanguage )
 
 void Font::SetCJKContextLanguage( LanguageType eLanguage )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->maCJKLanguageTag.getLanguageType( false) != eLanguage )
     {
@@ -430,7 +409,6 @@ void Font::SetCJKContextLanguage( LanguageType eLanguage )
 
 void Font::SetPitch( FontPitch ePitch )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mePitch != ePitch )
     {
@@ -441,7 +419,6 @@ void Font::SetPitch( FontPitch ePitch )
 
 void Font::SetOrientation( short nOrientation )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mnOrientation != nOrientation )
     {
@@ -452,7 +429,6 @@ void Font::SetOrientation( short nOrientation )
 
 void Font::SetVertical( sal_Bool bVertical )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mbVertical != bVertical )
     {
@@ -463,7 +439,6 @@ void Font::SetVertical( sal_Bool bVertical )
 
 void Font::SetKerning( FontKerning nKerning )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mnKerning != nKerning )
     {
@@ -479,7 +454,6 @@ sal_Bool Font::IsKerning() const
 
 void Font::SetWeight( FontWeight eWeight )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meWeight != eWeight )
     {
@@ -490,7 +464,6 @@ void Font::SetWeight( FontWeight eWeight )
 
 void Font::SetWidthType( FontWidth eWidth )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meWidthType != eWidth )
     {
@@ -501,7 +474,6 @@ void Font::SetWidthType( FontWidth eWidth )
 
 void Font::SetItalic( FontItalic eItalic )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meItalic != eItalic )
     {
@@ -512,7 +484,6 @@ void Font::SetItalic( FontItalic eItalic )
 
 void Font::SetOutline( sal_Bool bOutline )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mbOutline != bOutline )
     {
@@ -523,7 +494,6 @@ void Font::SetOutline( sal_Bool bOutline )
 
 void Font::SetShadow( sal_Bool bShadow )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mbShadow != bShadow )
     {
@@ -534,7 +504,6 @@ void Font::SetShadow( sal_Bool bShadow )
 
 void Font::SetUnderline( FontUnderline eUnderline )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meUnderline != eUnderline )
     {
@@ -545,7 +514,6 @@ void Font::SetUnderline( FontUnderline eUnderline )
 
 void Font::SetOverline( FontUnderline eOverline )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meOverline != eOverline )
     {
@@ -556,7 +524,6 @@ void Font::SetOverline( FontUnderline eOverline )
 
 void Font::SetStrikeout( FontStrikeout eStrikeout )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meStrikeout != eStrikeout )
     {
@@ -567,7 +534,6 @@ void Font::SetStrikeout( FontStrikeout eStrikeout )
 
 void Font::SetRelief( FontRelief eRelief )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meRelief != eRelief )
     {
@@ -578,7 +544,6 @@ void Font::SetRelief( FontRelief eRelief )
 
 void Font::SetEmphasisMark( FontEmphasisMark eEmphasisMark )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->meEmphasisMark != eEmphasisMark )
     {
@@ -589,7 +554,6 @@ void Font::SetEmphasisMark( FontEmphasisMark eEmphasisMark )
 
 void Font::SetWordLineMode( sal_Bool bWordLine )
 {
-    DBG_CHKTHIS( Font, NULL );
 
     if( mpImplFont->mbWordLine != bWordLine )
     {
@@ -600,8 +564,6 @@ void Font::SetWordLineMode( sal_Bool bWordLine )
 
 Font& Font::operator=( const Font& rFont )
 {
-    DBG_CHKTHIS( Font, NULL );
-    DBG_CHKOBJ( &rFont, Font, NULL );
     bool bRefIncrementable = rFont.mpImplFont->mnRefCount < ::std::numeric_limits<FontRefCount>::max();
     DBG_ASSERT( bRefIncrementable, "Font: RefCount overflow" );
 
@@ -627,8 +589,6 @@ Font& Font::operator=( const Font& rFont )
 
 sal_Bool Font::operator==( const Font& rFont ) const
 {
-    DBG_CHKTHIS( Font, NULL );
-    DBG_CHKOBJ( &rFont, Font, NULL );
 
     if( mpImplFont == rFont.mpImplFont )
         return sal_True;
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index c1058b2..3d123bd 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -23,7 +23,6 @@
 #include <tools/gen.hxx>
 #include <vcl/gradient.hxx>
 
-DBG_NAME( Gradient )
 
 Impl_Gradient::Impl_Gradient() :
     maStartColor( COL_BLACK ),
@@ -69,15 +68,12 @@ void Gradient::MakeUnique()
 
 Gradient::Gradient()
 {
-    DBG_CTOR( Gradient, NULL );
 
     mpImplGradient = new Impl_Gradient;
 }
 
 Gradient::Gradient( const Gradient& rGradient )
 {
-    DBG_CTOR( Gradient, NULL );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     // Take over instance data and increment refcount
     mpImplGradient = rGradient.mpImplGradient;
@@ -87,7 +83,6 @@ Gradient::Gradient( const Gradient& rGradient )
 Gradient::Gradient( GradientStyle eStyle,
                     const Color& rStartColor, const Color& rEndColor )
 {
-    DBG_CTOR( Gradient, NULL );
 
     mpImplGradient                  = new Impl_Gradient;
     mpImplGradient->meStyle         = eStyle;
@@ -97,7 +92,6 @@ Gradient::Gradient( GradientStyle eStyle,
 
 Gradient::~Gradient()
 {
-    DBG_DTOR( Gradient, NULL );
 
     // If it's the last reference, delete it, otherwise
     // decrement refcount
@@ -109,7 +103,6 @@ Gradient::~Gradient()
 
 void Gradient::SetStyle( GradientStyle eStyle )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->meStyle = eStyle;
@@ -117,7 +110,6 @@ void Gradient::SetStyle( GradientStyle eStyle )
 
 void Gradient::SetStartColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->maStartColor = rColor;
@@ -125,7 +117,6 @@ void Gradient::SetStartColor( const Color& rColor )
 
 void Gradient::SetEndColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->maEndColor = rColor;
@@ -133,7 +124,6 @@ void Gradient::SetEndColor( const Color& rColor )
 
 void Gradient::SetAngle( sal_uInt16 nAngle )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnAngle = nAngle;
@@ -141,7 +131,6 @@ void Gradient::SetAngle( sal_uInt16 nAngle )
 
 void Gradient::SetBorder( sal_uInt16 nBorder )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnBorder = nBorder;
@@ -149,7 +138,6 @@ void Gradient::SetBorder( sal_uInt16 nBorder )
 
 void Gradient::SetOfsX( sal_uInt16 nOfsX )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnOfsX = nOfsX;
@@ -157,7 +145,6 @@ void Gradient::SetOfsX( sal_uInt16 nOfsX )
 
 void Gradient::SetOfsY( sal_uInt16 nOfsY )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnOfsY = nOfsY;
@@ -165,7 +152,6 @@ void Gradient::SetOfsY( sal_uInt16 nOfsY )
 
 void Gradient::SetStartIntensity( sal_uInt16 nIntens )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnIntensityStart = nIntens;
@@ -173,7 +159,6 @@ void Gradient::SetStartIntensity( sal_uInt16 nIntens )
 
 void Gradient::SetEndIntensity( sal_uInt16 nIntens )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnIntensityEnd = nIntens;
@@ -181,7 +166,6 @@ void Gradient::SetEndIntensity( sal_uInt16 nIntens )
 
 void Gradient::SetSteps( sal_uInt16 nSteps )
 {
-    DBG_CHKTHIS( Gradient, NULL );
 
     MakeUnique();
     mpImplGradient->mnStepCount = nSteps;
@@ -267,8 +251,6 @@ void Gradient::GetBoundRect( const Rectangle& rRect, Rectangle& rBoundRect, Poin
 
 Gradient& Gradient::operator=( const Gradient& rGradient )
 {
-    DBG_CHKTHIS( Gradient, NULL );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     // Increment refcount first so that we can reference ourselves
     rGradient.mpImplGradient->mnRefCount++;
@@ -285,8 +267,6 @@ Gradient& Gradient::operator=( const Gradient& rGradient )
 
 sal_Bool Gradient::operator==( const Gradient& rGradient ) const
 {
-    DBG_CHKTHIS( Gradient, NULL );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     if ( mpImplGradient == rGradient.mpImplGradient )
         return sal_True;
diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index 037a194..cf01b03 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -22,7 +22,6 @@
 #include <tools/debug.hxx>
 #include <vcl/hatch.hxx>
 
-DBG_NAME( Hatch )
 
 ImplHatch::ImplHatch() :
     mnRefCount  ( 1 ),
@@ -44,14 +43,11 @@ ImplHatch::ImplHatch( const ImplHatch& rImplHatch ) :
 
 Hatch::Hatch()
 {
-    DBG_CTOR( Hatch, NULL );
     mpImplHatch = new ImplHatch;
 }
 
 Hatch::Hatch( const Hatch& rHatch )
 {
-    DBG_CTOR( Hatch, NULL );
-    DBG_CHKOBJ( &rHatch, Hatch, NULL );
     mpImplHatch = rHatch.mpImplHatch;
     mpImplHatch->mnRefCount++;
 }
@@ -59,7 +55,6 @@ Hatch::Hatch( const Hatch& rHatch )
 Hatch::Hatch( HatchStyle eStyle, const Color& rColor,
               long nDistance, sal_uInt16 nAngle10 )
 {
-    DBG_CTOR( Hatch, NULL );
     mpImplHatch = new ImplHatch;
     mpImplHatch->maColor = rColor;
     mpImplHatch->meStyle = eStyle;
@@ -69,15 +64,12 @@ Hatch::Hatch( HatchStyle eStyle, const Color& rColor,
 
 Hatch::~Hatch()
 {
-    DBG_DTOR( Hatch, NULL );
     if( !( --mpImplHatch->mnRefCount ) )
         delete mpImplHatch;
 }
 
 Hatch& Hatch::operator=( const Hatch& rHatch )
 {
-    DBG_CHKTHIS( Hatch, NULL );
-    DBG_CHKOBJ( &rHatch, Hatch, NULL );
 
     rHatch.mpImplHatch->mnRefCount++;
 
@@ -90,8 +82,6 @@ Hatch& Hatch::operator=( const Hatch& rHatch )
 
 sal_Bool Hatch::operator==( const Hatch& rHatch ) const
 {
-    DBG_CHKTHIS( Hatch, NULL );
-    DBG_CHKOBJ( &rHatch, Hatch, NULL );
 
     return( mpImplHatch == rHatch.mpImplHatch ||
             ( mpImplHatch->maColor == rHatch.mpImplHatch->maColor &&
@@ -113,21 +103,18 @@ void Hatch::ImplMakeUnique()
 
 void Hatch::SetColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Hatch, NULL );
     ImplMakeUnique();
     mpImplHatch->maColor = rColor;
 }
 
 void Hatch::SetDistance( long nDistance )
 {
-    DBG_CHKTHIS( Hatch, NULL );
     ImplMakeUnique();
     mpImplHatch->mnDistance = nDistance;
 }
 
 void Hatch::SetAngle( sal_uInt16 nAngle10 )
 {
-    DBG_CHKTHIS( Hatch, NULL );
     ImplMakeUnique();
     mpImplHatch->mnAngle = nAngle10;
 }
diff --git a/vcl/source/gdi/image.cxx b/vcl/source/gdi/image.cxx
index 33fd919..1384e0b 100644
--- a/vcl/source/gdi/image.cxx
+++ b/vcl/source/gdi/image.cxx
@@ -41,21 +41,17 @@
 #include <rtl/strbuf.hxx>
 #endif
 
-DBG_NAME( Image )
-DBG_NAME( ImageList )
 
 using namespace ::com::sun::star;
 
 Image::Image() :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 }
 
 Image::Image( const ResId& rResId ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     rResId.SetRT( RSC_IMAGE );
 
@@ -102,7 +98,6 @@ Image::Image( const ResId& rResId ) :
 Image::Image( const Image& rImage ) :
     mpImplData( rImage.mpImplData )
 {
-    DBG_CTOR( Image, NULL );
 
     if( mpImplData )
         ++mpImplData->mnRefCount;
@@ -111,7 +106,6 @@ Image::Image( const Image& rImage ) :
 Image::Image( const BitmapEx& rBitmapEx ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     ImplInit( rBitmapEx );
 }
@@ -119,7 +113,6 @@ Image::Image( const BitmapEx& rBitmapEx ) :
 Image::Image( const Bitmap& rBitmap ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     ImplInit( rBitmap );
 }
@@ -127,7 +120,6 @@ Image::Image( const Bitmap& rBitmap ) :
 Image::Image( const Bitmap& rBitmap, const Bitmap& rMaskBitmap ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     const BitmapEx aBmpEx( rBitmap, rMaskBitmap );
 
@@ -137,7 +129,6 @@ Image::Image( const Bitmap& rBitmap, const Bitmap& rMaskBitmap ) :
 Image::Image( const Bitmap& rBitmap, const Color& rColor ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     const BitmapEx aBmpEx( rBitmap, rColor );
 
@@ -147,7 +138,6 @@ Image::Image( const Bitmap& rBitmap, const Color& rColor ) :
 Image::Image( const uno::Reference< graphic::XGraphic >& rxGraphic ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
 
     const Graphic aGraphic( rxGraphic );
     ImplInit( aGraphic.GetBitmapEx() );
@@ -156,7 +146,6 @@ Image::Image( const uno::Reference< graphic::XGraphic >& rxGraphic ) :
 Image::Image( const OUString &rFileUrl ) :
     mpImplData( NULL )
 {
-    DBG_CTOR( Image, NULL );
     OUString aTmp;
     osl::FileBase::getSystemPathFromFileURL( rFileUrl, aTmp );
     Graphic aGraphic;
@@ -169,7 +158,6 @@ Image::Image( const OUString &rFileUrl ) :
 
 Image::~Image()
 {
-    DBG_DTOR( Image, NULL );
 
     if( mpImplData && ( 0 == --mpImplData->mnRefCount ) )
         delete mpImplData;
@@ -197,7 +185,6 @@ void Image::ImplInit( const BitmapEx& rBmpEx )
 
 Size Image::GetSizePixel() const
 {
-    DBG_CHKTHIS( Image, NULL );
 
     Size aRet;
 
@@ -220,7 +207,6 @@ Size Image::GetSizePixel() const
 
 BitmapEx Image::GetBitmapEx() const
 {
-    DBG_CHKTHIS( Image, NULL );
 
     BitmapEx aRet;
 
@@ -250,8 +236,6 @@ uno::Reference< graphic::XGraphic > Image::GetXGraphic() const
 
 Image& Image::operator=( const Image& rImage )
 {
-    DBG_CHKTHIS( Image, NULL );
-    DBG_CHKOBJ( &rImage, Image, NULL );
 
     if( rImage.mpImplData )
         ++rImage.mpImplData->mnRefCount;
@@ -266,8 +250,6 @@ Image& Image::operator=( const Image& rImage )
 
 sal_Bool Image::operator==( const Image& rImage ) const
 {
-    DBG_CHKTHIS( Image, NULL );
-    DBG_CHKOBJ( &rImage, Image, NULL );
 
     bool bRet = false;
 
@@ -303,7 +285,6 @@ ImageList::ImageList( sal_uInt16 nInit, sal_uInt16 nGrow ) :
     mnInitSize( nInit ),
     mnGrowSize( nGrow )
 {
-    DBG_CTOR( ImageList, NULL );
 }
 
 ImageList::ImageList( const ResId& rResId ) :
@@ -313,7 +294,6 @@ ImageList::ImageList( const ResId& rResId ) :
 {
     SAL_INFO( "vcl.gdi", "vcl: ImageList::ImageList( const ResId& rResId )" );
 
-    DBG_CTOR( ImageList, NULL );
 
     rResId.SetRT( RSC_IMAGELIST );
 
@@ -363,7 +343,6 @@ ImageList::ImageList( const ::std::vector< OUString >& rNameVector,
 {
     SAL_INFO( "vcl.gdi", "vcl: ImageList::ImageList(const vector< OUString >& ..." );
 
-    DBG_CTOR( ImageList, NULL );
 
     ImplInit( sal::static_int_cast< sal_uInt16 >( rNameVector.size() ), Size() );
 
@@ -379,7 +358,6 @@ ImageList::ImageList( const ImageList& rImageList ) :
     mnInitSize( rImageList.mnInitSize ),
     mnGrowSize( rImageList.mnGrowSize )
 {
-    DBG_CTOR( ImageList, NULL );
 
     if( mpImplData )
         ++mpImplData->mnRefCount;
@@ -387,7 +365,6 @@ ImageList::ImageList( const ImageList& rImageList ) :
 
 ImageList::~ImageList()
 {
-    DBG_DTOR( ImageList, NULL );
 
     if( mpImplData && ( 0 == --mpImplData->mnRefCount ) )
         delete mpImplData;
@@ -511,7 +488,6 @@ void ImageList::InsertFromHorizontalBitmap( const ResId& rResId,
 
 sal_uInt16 ImageList::ImplGetImageId( const OUString& rImageName ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     ImageAryData *pImg = mpImplData->maNameHash[ rImageName ];
     if( pImg )
@@ -547,7 +523,6 @@ void ImageList::ReplaceImage( const OUString& rImageName, const Image& rImage )
 
 void ImageList::RemoveImage( sal_uInt16 nId )
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); ++i )
     {
@@ -561,7 +536,6 @@ void ImageList::RemoveImage( sal_uInt16 nId )
 
 Image ImageList::GetImage( sal_uInt16 nId ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     Image aRet;
 
@@ -611,14 +585,12 @@ Image ImageList::GetImage( const OUString& rImageName ) const
 
 sal_uInt16 ImageList::GetImageCount() const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     return mpImplData ? static_cast< sal_uInt16 >( mpImplData->maImages.size() ) : 0;
 }
 
 sal_uInt16 ImageList::GetImagePos( sal_uInt16 nId ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     if( mpImplData && nId )
     {
@@ -639,7 +611,6 @@ bool ImageList::HasImageAtPos( sal_uInt16 nId ) const
 
 sal_uInt16 ImageList::GetImagePos( const OUString& rImageName ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     if( mpImplData && !rImageName.isEmpty() )
     {
@@ -655,7 +626,6 @@ sal_uInt16 ImageList::GetImagePos( const OUString& rImageName ) const
 
 sal_uInt16 ImageList::GetImageId( sal_uInt16 nPos ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     if( mpImplData && (nPos < GetImageCount()) )
         return mpImplData->maImages[ nPos ]->mnId;
@@ -665,7 +635,6 @@ sal_uInt16 ImageList::GetImageId( sal_uInt16 nPos ) const
 
 OUString ImageList::GetImageName( sal_uInt16 nPos ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     if( mpImplData && (nPos < GetImageCount()) )
         return mpImplData->maImages[ nPos ]->maName;
@@ -677,7 +646,6 @@ void ImageList::GetImageNames( ::std::vector< OUString >& rNames ) const
 {
     SAL_INFO( "vcl.gdi", "vcl: ImageList::GetImageNames" );
 
-    DBG_CHKTHIS( ImageList, NULL );
 
     rNames = ::std::vector< OUString >();
 
@@ -694,7 +662,6 @@ void ImageList::GetImageNames( ::std::vector< OUString >& rNames ) const
 
 Size ImageList::GetImageSize() const
 {
-    DBG_CHKTHIS( ImageList, NULL );
 
     Size aRet;
 
@@ -715,8 +682,6 @@ Size ImageList::GetImageSize() const
 
 ImageList& ImageList::operator=( const ImageList& rImageList )
 {
-    DBG_CHKTHIS( ImageList, NULL );
-    DBG_CHKOBJ( &rImageList, ImageList, NULL );
 
     if( rImageList.mpImplData )
         ++rImageList.mpImplData->mnRefCount;
@@ -731,8 +696,6 @@ ImageList& ImageList::operator=( const ImageList& rImageList )
 
 sal_Bool ImageList::operator==( const ImageList& rImageList ) const
 {
-    DBG_CHKTHIS( ImageList, NULL );
-    DBG_CHKOBJ( &rImageList, ImageList, NULL );
 
     bool bRet = false;
 
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index a2ca658..5a3e3c0 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -25,7 +25,6 @@
 
 #include <jobset.h>
 
-DBG_NAME( JobSetup )
 
 #define JOBSET_FILE364_SYSTEM   ((sal_uInt16)0xFFFF)
 #define JOBSET_FILE605_SYSTEM   ((sal_uInt16)0xFFFE)
@@ -121,15 +120,12 @@ const ImplJobSetup* JobSetup::ImplGetConstData() const
 
 JobSetup::JobSetup()
 {
-    DBG_CTOR( JobSetup, NULL );
 
     mpData = NULL;
 }
 
 JobSetup::JobSetup( const JobSetup& rJobSetup )
 {
-    DBG_CTOR( JobSetup, NULL );
-    DBG_CHKOBJ( &rJobSetup, JobSetup, NULL );
     DBG_ASSERT( !rJobSetup.mpData || (rJobSetup.mpData->mnRefCount < 0xFFFE), "JobSetup: RefCount overflow" );
 
     mpData = rJobSetup.mpData;
@@ -139,7 +135,6 @@ JobSetup::JobSetup( const JobSetup& rJobSetup )
 
 JobSetup::~JobSetup()
 {
-    DBG_DTOR( JobSetup, NULL );
 
     if ( mpData )
     {
@@ -176,8 +171,6 @@ void JobSetup::SetValue( const OUString& rKey, const OUString& rValue )
 
 JobSetup& JobSetup::operator=( const JobSetup& rJobSetup )
 {
-    DBG_CHKTHIS( JobSetup, NULL );
-    DBG_CHKOBJ( &rJobSetup, JobSetup, NULL );
     DBG_ASSERT( !rJobSetup.mpData || (rJobSetup.mpData->mnRefCount) < 0xFFFE, "JobSetup: RefCount overflow" );
 
     // Increment refcount first, so that we can assign to ourselves
@@ -201,8 +194,6 @@ JobSetup& JobSetup::operator=( const JobSetup& rJobSetup )
 
 sal_Bool JobSetup::operator==( const JobSetup& rJobSetup ) const
 {
-    DBG_CHKTHIS( JobSetup, NULL );
-    DBG_CHKOBJ( &rJobSetup, JobSetup, NULL );
 
     if ( mpData == rJobSetup.mpData )
         return sal_True;
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index 80bd9c1..b000326 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -26,7 +26,6 @@
 #include <basegfx/polygon/b2dlinegeometry.hxx>
 #include <numeric>
 
-DBG_NAME( LineInfo )
 
 // ----------------
 // - ImplLineInfo -
@@ -83,7 +82,6 @@ inline bool ImplLineInfo::operator==( const ImplLineInfo& rB ) const
 
 LineInfo::LineInfo( LineStyle eStyle, long nWidth )
 {
-    DBG_CTOR( LineInfo, NULL );
     mpImplLineInfo = new ImplLineInfo;
     mpImplLineInfo->meStyle = eStyle;
     mpImplLineInfo->mnWidth = nWidth;
@@ -93,8 +91,6 @@ LineInfo::LineInfo( LineStyle eStyle, long nWidth )
 
 LineInfo::LineInfo( const LineInfo& rLineInfo )
 {
-    DBG_CTOR( LineInfo, NULL );
-    DBG_CHKOBJ( &rLineInfo, LineInfo, NULL );
     mpImplLineInfo = rLineInfo.mpImplLineInfo;
     mpImplLineInfo->mnRefCount++;
 }
@@ -103,7 +99,6 @@ LineInfo::LineInfo( const LineInfo& rLineInfo )
 
 LineInfo::~LineInfo()
 {
-    DBG_DTOR( LineInfo, NULL );
     if( !( --mpImplLineInfo->mnRefCount ) )
         delete mpImplLineInfo;
 }
@@ -112,8 +107,6 @@ LineInfo::~LineInfo()
 
 LineInfo& LineInfo::operator=( const LineInfo& rLineInfo )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
-    DBG_CHKOBJ( &rLineInfo, LineInfo, NULL );
 
     rLineInfo.mpImplLineInfo->mnRefCount++;
 
@@ -128,8 +121,6 @@ LineInfo& LineInfo::operator=( const LineInfo& rLineInfo )
 
 sal_Bool LineInfo::operator==( const LineInfo& rLineInfo ) const
 {
-    DBG_CHKTHIS( LineInfo, NULL );
-    DBG_CHKOBJ( &rLineInfo, LineInfo, NULL );
 
     return( mpImplLineInfo == rLineInfo.mpImplLineInfo ||
            *mpImplLineInfo == *rLineInfo.mpImplLineInfo );
@@ -152,7 +143,6 @@ void LineInfo::ImplMakeUnique()
 
 void LineInfo::SetStyle( LineStyle eStyle )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->meStyle = eStyle;
 }
@@ -161,7 +151,6 @@ void LineInfo::SetStyle( LineStyle eStyle )
 
 void LineInfo::SetWidth( long nWidth )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnWidth = nWidth;
 }
@@ -170,7 +159,6 @@ void LineInfo::SetWidth( long nWidth )
 
 void LineInfo::SetDashCount( sal_uInt16 nDashCount )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnDashCount = nDashCount;
 }
@@ -179,7 +167,6 @@ void LineInfo::SetDashCount( sal_uInt16 nDashCount )
 
 void LineInfo::SetDashLen( long nDashLen )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnDashLen = nDashLen;
 }
@@ -188,7 +175,6 @@ void LineInfo::SetDashLen( long nDashLen )
 
 void LineInfo::SetDotCount( sal_uInt16 nDotCount )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnDotCount = nDotCount;
 }
@@ -197,7 +183,6 @@ void LineInfo::SetDotCount( sal_uInt16 nDotCount )
 
 void LineInfo::SetDotLen( long nDotLen )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnDotLen = nDotLen;
 }
@@ -206,7 +191,6 @@ void LineInfo::SetDotLen( long nDotLen )
 
 void LineInfo::SetDistance( long nDistance )
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     ImplMakeUnique();
     mpImplLineInfo->mnDistance = nDistance;
 }
@@ -215,7 +199,6 @@ void LineInfo::SetDistance( long nDistance )
 
 void LineInfo::SetLineJoin(basegfx::B2DLineJoin eLineJoin)
 {
-    DBG_CHKTHIS( LineInfo, NULL );
 
     if(eLineJoin != mpImplLineInfo->meLineJoin)
     {
@@ -228,7 +211,6 @@ void LineInfo::SetLineJoin(basegfx::B2DLineJoin eLineJoin)
 
 void LineInfo::SetLineCap(com::sun::star::drawing::LineCap eLineCap)
 {
-    DBG_CHKTHIS( LineInfo, NULL );
     if(eLineCap != mpImplLineInfo->meLineCap)
     {
         ImplMakeUnique();
diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx
index 768e979..86302b5 100644
--- a/vcl/source/gdi/mapmod.cxx
+++ b/vcl/source/gdi/mapmod.cxx
@@ -22,7 +22,6 @@
 #include <tools/debug.hxx>
 #include <vcl/mapmod.hxx>
 
-DBG_NAME( MapMode )
 
 ImplMapMode::ImplMapMode() :
     maOrigin( 0, 0 ),
@@ -103,15 +102,12 @@ inline void MapMode::ImplMakeUnique()
 
 MapMode::MapMode()
 {
-    DBG_CTOR( MapMode, NULL );
 
     mpImplMapMode = ImplMapMode::ImplGetStaticMapMode( MAP_PIXEL );
 }
 
 MapMode::MapMode( const MapMode& rMapMode )
 {
-    DBG_CTOR( MapMode, NULL );
-    DBG_CHKOBJ( &rMapMode, MapMode, NULL );
     DBG_ASSERT( rMapMode.mpImplMapMode->mnRefCount < 0xFFFFFFFE, "MapMode: RefCount overflow" );
 
     // Take over Shared Instance Data and increment refcount
@@ -123,7 +119,6 @@ MapMode::MapMode( const MapMode& rMapMode )
 
 MapMode::MapMode( MapUnit eUnit )
 {
-    DBG_CTOR( MapMode, NULL );
 
     mpImplMapMode = ImplMapMode::ImplGetStaticMapMode( eUnit );
 }
@@ -131,7 +126,6 @@ MapMode::MapMode( MapUnit eUnit )
 MapMode::MapMode( MapUnit eUnit, const Point& rLogicOrg,
                   const Fraction& rScaleX, const Fraction& rScaleY )
 {
-    DBG_CTOR( MapMode, NULL );
 
     mpImplMapMode           = new ImplMapMode;
     mpImplMapMode->meUnit   = eUnit;
@@ -142,7 +136,6 @@ MapMode::MapMode( MapUnit eUnit, const Point& rLogicOrg,
 
 MapMode::~MapMode()
 {
-    DBG_DTOR( MapMode, NULL );
 
     // If it's not static ImpData and it's the last reference, delete it,
     // else decrement refcounter
@@ -157,7 +150,6 @@ MapMode::~MapMode()
 
 void MapMode::SetMapUnit( MapUnit eUnit )
 {
-    DBG_CHKTHIS( MapMode, NULL );
 
     ImplMakeUnique();
     mpImplMapMode->meUnit = eUnit;
@@ -165,7 +157,6 @@ void MapMode::SetMapUnit( MapUnit eUnit )
 
 void MapMode::SetOrigin( const Point& rLogicOrg )
 {
-    DBG_CHKTHIS( MapMode, NULL );
 
     ImplMakeUnique();
     mpImplMapMode->maOrigin = rLogicOrg;
@@ -173,7 +164,6 @@ void MapMode::SetOrigin( const Point& rLogicOrg )
 
 void MapMode::SetScaleX( const Fraction& rScaleX )
 {
-    DBG_CHKTHIS( MapMode, NULL );
 
     ImplMakeUnique();
     mpImplMapMode->maScaleX = rScaleX;
@@ -181,7 +171,6 @@ void MapMode::SetScaleX( const Fraction& rScaleX )
 
 void MapMode::SetScaleY( const Fraction& rScaleY )
 {
-    DBG_CHKTHIS( MapMode, NULL );
 
     ImplMakeUnique();
     mpImplMapMode->maScaleY = rScaleY;
@@ -189,8 +178,6 @@ void MapMode::SetScaleY( const Fraction& rScaleY )
 
 MapMode& MapMode::operator=( const MapMode& rMapMode )
 {
-    DBG_CHKTHIS( MapMode, NULL );
-    DBG_CHKOBJ( &rMapMode, MapMode, NULL );
     DBG_ASSERT( rMapMode.mpImplMapMode->mnRefCount < 0xFFFFFFFE, "MapMode: RefCount overflow" );
 
     // First increment refcount so that we can reference ourselves
@@ -215,8 +202,6 @@ MapMode& MapMode::operator=( const MapMode& rMapMode )
 
 sal_Bool MapMode::operator==( const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( MapMode, NULL );
-    DBG_CHKOBJ( &rMapMode, MapMode, NULL );
 
     if ( mpImplMapMode == rMapMode.mpImplMapMode )
         return sal_True;
@@ -232,7 +217,6 @@ sal_Bool MapMode::operator==( const MapMode& rMapMode ) const
 
 sal_Bool MapMode::IsDefault() const
 {
-    DBG_CHKTHIS( MapMode, NULL );
 
     ImplMapMode* pDefMapMode = ImplMapMode::ImplGetStaticMapMode( MAP_PIXEL );
     if ( mpImplMapMode == pDefMapMode )
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index b777dbe..b6f8945 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -63,19 +63,15 @@
 
 using namespace ::com::sun::star;
 
-DBG_NAME( OutputDevice )
 #ifdef DISABLE_DYNLOADING
 // Linking all needed LO code into one .so/executable, these already
 // exist in the tools library, so put them in the anonymous namespace
 // here to avoid clash...
 namespace {
 #endif
-DBG_NAME( Polygon )
-DBG_NAME( PolyPolygon )
 #ifdef DISABLE_DYNLOADING
 }
 #endif
-DBG_NAMEEX( Region )
 
 #ifdef DBG_UTIL
 const char* ImplDbgCheckOutputDevice( const void* pObj )
@@ -326,7 +322,6 @@ OutputDevice::OutputDevice() :
     maTextLineColor( COL_TRANSPARENT ),
     maSettings( Application::GetSettings() )
 {
-    DBG_CTOR( OutputDevice, ImplDbgCheckOutputDevice );
 
     mpGraphics          = NULL;
     mpUnoGraphicsList   = NULL;
@@ -407,7 +402,6 @@ OutputDevice::OutputDevice() :
 
 OutputDevice::~OutputDevice()
 {
-    DBG_DTOR( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( GetUnoGraphicsList() )
     {
@@ -1030,7 +1024,6 @@ void OutputDevice::ImplSetClipRegion( const Region* pRegion )
 
 void OutputDevice::SetClipRegion()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaClipRegionAction( Region(), sal_False ) );
@@ -1043,7 +1036,6 @@ void OutputDevice::SetClipRegion()
 
 void OutputDevice::SetClipRegion( const Region& rRegion )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaClipRegionAction( rRegion, sal_True ) );
@@ -1064,14 +1056,12 @@ void OutputDevice::SetClipRegion( const Region& rRegion )
 
 Region OutputDevice::GetClipRegion() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     return PixelToLogic( maRegion );
 }
 
 Region OutputDevice::GetActiveClipRegion() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( GetOutDevType() == OUTDEV_WINDOW )
     {
@@ -1092,7 +1082,6 @@ Region OutputDevice::GetActiveClipRegion() const
 
 void OutputDevice::MoveClipRegion( long nHorzMove, long nVertMove )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mbClipRegion )
     {
@@ -1110,7 +1099,6 @@ void OutputDevice::MoveClipRegion( long nHorzMove, long nVertMove )
 
 void OutputDevice::IntersectClipRegion( const Rectangle& rRect )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaISectRectClipRegionAction( rRect ) );
@@ -1126,7 +1114,6 @@ void OutputDevice::IntersectClipRegion( const Rectangle& rRect )
 
 void OutputDevice::IntersectClipRegion( const Region& rRegion )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if(!rRegion.IsNull())
     {
@@ -1145,7 +1132,6 @@ void OutputDevice::IntersectClipRegion( const Region& rRegion )
 
 void OutputDevice::SetDrawMode( sal_uLong nDrawMode )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     mnDrawMode = nDrawMode;
 
@@ -1155,7 +1141,6 @@ void OutputDevice::SetDrawMode( sal_uLong nDrawMode )
 
 void OutputDevice::SetRasterOp( RasterOp eRasterOp )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaRasterOpAction( eRasterOp ) );
@@ -1175,7 +1160,6 @@ void OutputDevice::SetRasterOp( RasterOp eRasterOp )
 
 void OutputDevice::SetLineColor()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaLineColorAction( Color(), sal_False ) );
@@ -1234,7 +1218,6 @@ Color OutputDevice::ImplDrawModeToColor( const Color& rColor ) const
 
 void OutputDevice::SetLineColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor = ImplDrawModeToColor( rColor );
 
@@ -1266,7 +1249,6 @@ void OutputDevice::SetLineColor( const Color& rColor )
 
 void OutputDevice::SetFillColor()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaFillColorAction( Color(), sal_False ) );
@@ -1284,7 +1266,6 @@ void OutputDevice::SetFillColor()
 
 void OutputDevice::SetFillColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor( rColor );
 
@@ -1353,7 +1334,6 @@ void OutputDevice::SetFillColor( const Color& rColor )
 
 void OutputDevice::SetBackground()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     maBackground = Wallpaper();
     mbBackground = sal_False;
@@ -1364,7 +1344,6 @@ void OutputDevice::SetBackground()
 
 void OutputDevice::SetBackground( const Wallpaper& rBackground )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     maBackground = rBackground;
 
@@ -1379,7 +1358,6 @@ void OutputDevice::SetBackground( const Wallpaper& rBackground )
 
 void OutputDevice::SetRefPoint()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaRefPointAction( Point(), sal_False ) );
@@ -1393,7 +1371,6 @@ void OutputDevice::SetRefPoint()
 
 void OutputDevice::SetRefPoint( const Point& rRefPoint )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaRefPointAction( rRefPoint, sal_True ) );
@@ -1407,7 +1384,6 @@ void OutputDevice::SetRefPoint( const Point& rRefPoint )
 
 void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaLineAction( rStartPt, rEndPt ) );
@@ -1604,7 +1580,6 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
 void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
                              const LineInfo& rLineInfo )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( rLineInfo.IsDefault() )
     {
@@ -1655,7 +1630,6 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
 
 void OutputDevice::DrawRect( const Rectangle& rRect )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaRectAction( rRect ) );
@@ -1693,8 +1667,6 @@ void OutputDevice::DrawRect( const Rectangle& rRect )
 
 void OutputDevice::DrawPolyLine( const Polygon& rPoly )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rPoly, Polygon, NULL );
 
     if( mpMetaFile )
         mpMetaFile->AddAction( new MetaPolyLineAction( rPoly ) );
@@ -1768,8 +1740,6 @@ void OutputDevice::DrawPolyLine( const Polygon& rPoly )
 
 void OutputDevice::DrawPolyLine( const Polygon& rPoly, const LineInfo& rLineInfo )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rPoly, Polygon, NULL );
 
     if ( rLineInfo.IsDefault() )
     {
@@ -1857,8 +1827,6 @@ void OutputDevice::ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineI
 
 void OutputDevice::DrawPolygon( const Polygon& rPoly )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rPoly, Polygon, NULL );
 
     if( mpMetaFile )
         mpMetaFile->AddAction( new MetaPolygonAction( rPoly ) );
@@ -1950,8 +1918,6 @@ void OutputDevice::DrawPolygon( const Polygon& rPoly )
 
 void OutputDevice::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rPolyPoly, PolyPolygon, NULL );
 
     if( mpMetaFile )
         mpMetaFile->AddAction( new MetaPolyPolygonAction( rPolyPoly ) );
@@ -2064,7 +2030,6 @@ void OutputDevice::DrawPolygon( const ::basegfx::B2DPolygon& rB2DPolygon)
 
 void OutputDevice::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rB2DPolyPoly )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( mpMetaFile )
         mpMetaFile->AddAction( new MetaPolyPolygonAction( PolyPolygon( rB2DPolyPoly ) ) );
@@ -2242,7 +2207,6 @@ void OutputDevice::DrawPolyLine(
     basegfx::B2DLineJoin eLineJoin,
     com::sun::star::drawing::LineCap eLineCap)
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( mpMetaFile )
     {
@@ -2351,7 +2315,6 @@ sal_uInt32 OutputDevice::GetGCStackDepth() const
 
 void OutputDevice::Push( sal_uInt16 nFlags )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaPushAction( nFlags ) );
@@ -2435,7 +2398,6 @@ void OutputDevice::Push( sal_uInt16 nFlags )
 
 void OutputDevice::Pop()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( mpMetaFile )
         mpMetaFile->AddAction( new MetaPopAction() );
@@ -2548,7 +2510,6 @@ void OutputDevice::SetSettings( const AllSettings& rSettings )
 
 sal_uInt16 OutputDevice::GetBitCount() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( meOutDevType == OUTDEV_VIRDEV )
         return ((VirtualDevice*)this)->mnBitCount;
@@ -2565,7 +2526,6 @@ sal_uInt16 OutputDevice::GetBitCount() const
 
 sal_uInt16 OutputDevice::GetAlphaBitCount() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( meOutDevType == OUTDEV_VIRDEV &&
         mpAlphaVDev != NULL )
@@ -2578,7 +2538,6 @@ sal_uInt16 OutputDevice::GetAlphaBitCount() const
 
 sal_uLong OutputDevice::GetColorCount() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     const sal_uInt16 nBitCount = GetBitCount();
     return( ( nBitCount > 31 ) ? ULONG_MAX : ( ( (sal_uLong) 1 ) << nBitCount) );
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx
index 759c3b4..062275e 100644
--- a/vcl/source/gdi/outdev2.cxx
+++ b/vcl/source/gdi/outdev2.cxx
@@ -39,7 +39,6 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
 
-DBG_NAMEEX( OutputDevice )
 
 #define OUTDEV_INIT()                       \
 {                                           \
@@ -225,7 +224,6 @@ void OutputDevice::ImplDrawOutDevDirect( const OutputDevice* pSrcDev, SalTwoRect
 void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
                                const Point& rSrcPt,  const Size& rSrcSize )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     DBG_ASSERT( meOutDevType != OUTDEV_PRINTER, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
 
     if( ImplIsRecordLayout() )
@@ -278,8 +276,6 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
                                const Point& rSrcPt,  const Size& rSrcSize,
                                const OutputDevice& rOutDev )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rOutDev, OutputDevice, ImplDbgCheckOutputDevice );
     DBG_ASSERT( meOutDevType != OUTDEV_PRINTER, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
     DBG_ASSERT( rOutDev.meOutDevType != OUTDEV_PRINTER, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
 
@@ -348,7 +344,6 @@ void OutputDevice::CopyArea( const Point& rDestPt,
                              const Point& rSrcPt,  const Size& rSrcSize,
                              sal_uInt16 nFlags )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     DBG_ASSERT( meOutDevType != OUTDEV_PRINTER, "Don't use OutputDevice::CopyArea(...) with printer devices!" );
 
     if ( meOutDevType == OUTDEV_PRINTER || ImplIsRecordLayout() )
@@ -411,7 +406,6 @@ void OutputDevice::CopyArea( const Point& rDestPt,
 void OutputDevice::ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
                                      const OutputDevice& rOutDev, const Region& rRegion )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     GDIMetaFile*    pOldMetaFile = mpMetaFile;
     bool            bOldMap = mbMap;
@@ -457,7 +451,6 @@ void OutputDevice::ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, cons
 void OutputDevice::ImplGetFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
                                     OutputDevice& rDev )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     bool bOldMap = mbMap;
     mbMap = false;
@@ -514,7 +507,6 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
                                    const Point& rSrcPtPixel, const Size& rSrcSizePixel,
                                    const Bitmap& rBitmap, const sal_uLong nAction )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( ( mnDrawMode & DRAWMODE_NOBITMAP ) )
     {
@@ -902,7 +894,6 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
                                      const Point& rSrcPtPixel, const Size& rSrcSizePixel,
                                      const BitmapEx& rBitmapEx, const sal_uLong nAction )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     OSL_ENSURE(TRANSPARENT_NONE != rBitmapEx.GetTransparentType(), "ImplDrawBitmapEx not needed, no transparency in BitmapEx (!)");
 
     if ( mnDrawMode & DRAWMODE_NOBITMAP )
@@ -1222,7 +1213,6 @@ void OutputDevice::ImplDrawMask( const Point& rDestPt, const Size& rDestSize,
                                  const Bitmap& rBitmap, const Color& rMaskColor,
                                  const sal_uLong nAction )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( ROP_INVERT == meRasterOp )
     {
@@ -1416,7 +1406,6 @@ void OutputDevice::DrawImage( const Point& rPos, const Size& rSize,
 
 Bitmap OutputDevice::GetBitmap( const Point& rSrcPt, const Size& rSize ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     OSL_ENSURE(OUTDEV_PRINTER != GetOutDevType(), "OutputDevice::GetBitmap with sorce type OUTDEV_PRINTER should not be used (!)");
 
     Bitmap  aBmp;
@@ -1521,7 +1510,6 @@ Bitmap OutputDevice::GetBitmap( const Point& rSrcPt, const Size& rSize ) const
 
 BitmapEx OutputDevice::GetBitmapEx( const Point& rSrcPt, const Size& rSize ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // #110958# Extract alpha value from VDev, if any
     if( mpAlphaVDev )
@@ -1540,7 +1528,6 @@ BitmapEx OutputDevice::GetBitmapEx( const Point& rSrcPt, const Size& rSize ) con
 
 Color OutputDevice::GetPixel( const Point& rPt ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor;
 
@@ -1564,7 +1551,6 @@ Color OutputDevice::GetPixel( const Point& rPt ) const
 
 void OutputDevice::DrawPixel( const Point& rPt )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaPointAction( rPt ) );
@@ -1596,7 +1582,6 @@ void OutputDevice::DrawPixel( const Point& rPt )
 
 void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor = ImplDrawModeToColor( rColor );
 
@@ -1631,7 +1616,6 @@ void OutputDevice::DrawPixel( const Polygon& rPts, const Color* pColors )
         DrawPixel( rPts, GetLineColor() );
     else
     {
-        DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
         DBG_ASSERT( pColors, "OutputDevice::DrawPixel: No color array specified" );
 
         const sal_uInt16 nSize = rPts.GetSize();
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index ff17d68..8dc0429 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -91,8 +91,6 @@
 #include <algorithm>
 
 
-DBG_NAMEEX( OutputDevice )
-DBG_NAMEEX( Font )
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
@@ -4885,8 +4883,6 @@ void OutputDevice::SetAntialiasing( sal_uInt16 nMode )
 
 void OutputDevice::SetFont( const Font& rNewFont )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rNewFont, Font, NULL );
 
     Font aFont( rNewFont );
     aFont.SetLanguage(rNewFont.GetLanguage());
@@ -5016,7 +5012,6 @@ void OutputDevice::SetDigitLanguage( LanguageType eTextLanguage )
 
 void OutputDevice::SetTextColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor( rColor );
 
@@ -5059,7 +5054,6 @@ void OutputDevice::SetTextColor( const Color& rColor )
 
 void OutputDevice::SetTextFillColor()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaTextFillColorAction( Color(), sal_False ) );
@@ -5075,7 +5069,6 @@ void OutputDevice::SetTextFillColor()
 
 void OutputDevice::SetTextFillColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor( rColor );
     sal_Bool bTransFill = ImplIsColorTransparent( aColor ) ? sal_True : sal_False;
@@ -5134,7 +5127,6 @@ Color OutputDevice::GetTextFillColor() const
 
 void OutputDevice::SetTextLineColor()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaTextLineColorAction( Color(), sal_False ) );
@@ -5147,7 +5139,6 @@ void OutputDevice::SetTextLineColor()
 
 void OutputDevice::SetTextLineColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor( rColor );
 
@@ -5187,7 +5178,6 @@ void OutputDevice::SetTextLineColor( const Color& rColor )
 
 void OutputDevice::SetOverlineColor()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaOverlineColorAction( Color(), sal_False ) );
@@ -5200,7 +5190,6 @@ void OutputDevice::SetOverlineColor()
 
 void OutputDevice::SetOverlineColor( const Color& rColor )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Color aColor( rColor );
 
@@ -5240,7 +5229,6 @@ void OutputDevice::SetOverlineColor( const Color& rColor )
 
 void OutputDevice::SetTextAlign( TextAlign eAlign )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaTextAlignAction( eAlign ) );
@@ -5261,7 +5249,6 @@ void OutputDevice::DrawTextLine( const Point& rPos, long nWidth,
                                  FontUnderline eOverline,
                                  sal_Bool bUnderlineAbove )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaTextLineAction( rPos, nWidth, eStrikeout, eUnderline, eOverline ) );
@@ -5302,7 +5289,6 @@ void OutputDevice::DrawTextLine( const Point& rPos, long nWidth,
 void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos,
                                  sal_uInt16 nStyle )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !IsDeviceOutputNecessary() || ImplIsRecordLayout() )
         return;
@@ -5378,7 +5364,6 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
         pDisplayText = &mpOutDevData->mpRecordLayout->m_aDisplayText;
     }
 
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
 #if OSL_DEBUG_LEVEL > 2
     fprintf( stderr, "   OutputDevice::DrawText(\"%s\")\n",
@@ -5450,7 +5435,6 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
 
 long OutputDevice::GetTextWidth( const OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     long nWidth = GetTextArray( rStr, NULL, nIndex, nLen );
 
@@ -5459,7 +5443,6 @@ long OutputDevice::GetTextWidth( const OUString& rStr, sal_Int32 nIndex, sal_Int
 
 long OutputDevice::GetTextHeight() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( mbNewFont )
         if( !ImplNewFont() )
@@ -5485,7 +5468,6 @@ void OutputDevice::DrawTextArray( const Point& rStartPt, const OUString& rStr,
                                   const sal_Int32* pDXAry,
                                   xub_StrLen nIndex, xub_StrLen nLen )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaTextArrayAction( rStartPt, rStr, pDXAry, nIndex, nLen ) );
@@ -5514,7 +5496,6 @@ long OutputDevice::GetTextArray( const OUString& rStr, sal_Int32* pDXAry,
                                  sal_Int32 nIndex, sal_Int32 nLen ) const
 {
     // MEM: default nLen = STRING_LENGTH
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( nIndex >= rStr.getLength() )
         return 0;
@@ -5561,7 +5542,6 @@ bool OutputDevice::GetCaretPositions( const OUString& rStr, sal_Int32* pCaretXAr
     sal_Int32* pDXAry, long nLayoutWidth,
     sal_Bool bCellBreaking ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( nIndex >= rStr.getLength() )
         return false;
@@ -5626,7 +5606,6 @@ void OutputDevice::DrawStretchText( const Point& rStartPt, sal_uLong nWidth,
                                     const OUString& rStr,
                                     xub_StrLen nIndex, xub_StrLen nLen )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaStretchTextAction( rStartPt, nWidth, rStr, nIndex, nLen ) );
@@ -5997,7 +5976,6 @@ sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, long nTextWidth,
                                        sal_Int32 nIndex, sal_Int32 nLen,
                                        long nCharExtra ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     SalLayout* pSalLayout = ImplLayout( rStr, nIndex, nLen );
     sal_Int32 nRetVal = -1;
@@ -6030,7 +6008,6 @@ sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, long nTextWidth,
                                        sal_Int32 nIndex, sal_Int32 nLen,
                                        long nCharExtra ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     rHyphenatorPos = -1;
 
@@ -6353,7 +6330,6 @@ void OutputDevice::AddTextRectActions( const Rectangle& rRect,
                                        sal_uInt16       nStyle,
                                        GDIMetaFile&     rMtf )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( rOrigStr.isEmpty() || rRect.IsEmpty() )
         return;
@@ -6392,7 +6368,6 @@ void OutputDevice::DrawText( const Rectangle& rRect, const OUString& rOrigStr, s
         pDisplayText = &mpOutDevData->mpRecordLayout->m_aDisplayText;
     }
 
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     bool bDecomposeTextRectAction = ( _pTextLayout != NULL ) && _pTextLayout->DecomposeTextRectAction();
     if ( mpMetaFile && !bDecomposeTextRectAction )
@@ -6432,7 +6407,6 @@ Rectangle OutputDevice::GetTextRect( const Rectangle& rRect,
                                      TextRectInfo* pInfo,
                                      const ::vcl::ITextLayout* _pTextLayout ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Rectangle           aRect = rRect;
     xub_StrLen          nLines;
@@ -6560,7 +6534,6 @@ static bool ImplIsCharIn( sal_Unicode c, const sal_Char* pStr )
 OUString OutputDevice::GetEllipsisString( const OUString& rOrigStr, long nMaxWidth,
                                         sal_uInt16 nStyle ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     DefaultTextLayout aTextLayout( *const_cast< OutputDevice* >( this ) );
     return ImplGetEllipsisString( *this, rOrigStr, nMaxWidth, nStyle, aTextLayout );
 }
@@ -6695,7 +6668,6 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const OUString& rStr,
                                  xub_StrLen nIndex, xub_StrLen nLen,
                                  sal_uInt16 nStyle, MetricVector* pVector, OUString* pDisplayText )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !IsDeviceOutputNecessary() || (nIndex >= rStr.getLength()) )
         return;
@@ -6825,7 +6797,6 @@ long OutputDevice::GetCtrlTextWidth( const OUString& rStr,
                                      xub_StrLen nIndex, xub_StrLen nLen,
                                      sal_uInt16 nStyle ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( nStyle & TEXT_DRAW_MNEMONIC )
     {
@@ -6882,7 +6853,6 @@ OUString OutputDevice::GetNonMnemonicString( const OUString& rStr, sal_Int32& rM
 
 int OutputDevice::GetDevFontCount() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if( !mpGetDevFontList )
         mpGetDevFontList = mpFontList->GetDevFontList();
@@ -6891,7 +6861,6 @@ int OutputDevice::GetDevFontCount() const
 
 FontInfo OutputDevice::GetDevFont( int nDevFontIndex ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     FontInfo aFontInfo;
 
@@ -6920,7 +6889,6 @@ FontInfo OutputDevice::GetDevFont( int nDevFontIndex ) const
 
 sal_Bool OutputDevice::AddTempDevFont( const OUString& rFileURL, const OUString& rFontName )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     ImplInitFontList();
 
@@ -6940,7 +6908,6 @@ sal_Bool OutputDevice::AddTempDevFont( const OUString& rFileURL, const OUString&
 
 int OutputDevice::GetDevFontSizeCount( const Font& rFont ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     delete mpGetDevSizeList;
 
@@ -6951,7 +6918,6 @@ int OutputDevice::GetDevFontSizeCount( const Font& rFont ) const
 
 Size OutputDevice::GetDevFontSize( const Font& rFont, int nSizeIndex ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // check range
     int nCount = GetDevFontSizeCount( rFont );
@@ -6983,7 +6949,6 @@ Size OutputDevice::GetDevFontSize( const Font& rFont, int nSizeIndex ) const
 
 sal_Bool OutputDevice::IsFontAvailable( const OUString& rFontName ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     ImplDevFontListData* pFound = mpFontList->FindFontFamily( rFontName );
     return (pFound != NULL);
@@ -6991,7 +6956,6 @@ sal_Bool OutputDevice::IsFontAvailable( const OUString& rFontName ) const
 
 FontMetric OutputDevice::GetFontMetric() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     FontMetric aMetric;
     if( mbNewFont && !ImplNewFont() )
@@ -7091,7 +7055,6 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const
 SystemTextLayoutData OutputDevice::GetSysTextLayoutData(const Point& rStartPt, const OUString& rStr, xub_StrLen nIndex, xub_StrLen nLen,
                                                         const sal_Int32* pDXAry) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     SystemTextLayoutData aSysLayoutData;
     aSysLayoutData.nSize = sizeof(aSysLayoutData);
@@ -7139,7 +7102,6 @@ SystemTextLayoutData OutputDevice::GetSysTextLayoutData(const Point& rStartPt, c
 
 long OutputDevice::GetMinKashida() const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
     if( mbNewFont && !ImplNewFont() )
         return 0;
 
@@ -7174,7 +7136,6 @@ xub_StrLen OutputDevice::ValidateKashidas ( const OUString& rTxt,
 sal_Bool OutputDevice::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr,
     int nIndex, int nLen, int nBase, MetricVector& rVector )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     rVector.clear();
 
@@ -7197,7 +7158,6 @@ sal_Bool OutputDevice::GetTextBoundRect( Rectangle& rRect,
     const OUString& rStr, xub_StrLen nBase, xub_StrLen nIndex, xub_StrLen nLen,
     sal_uLong nLayoutWidth, const sal_Int32* pDXAry ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     sal_Bool bRet = sal_False;
     rRect.SetEmpty();
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 1be80e9..c101ccc 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -56,8 +56,6 @@ extern "C" int SAL_CALL ImplHatchCmpFnc( const void* p1, const void* p2 )
     return ( nX1 > nX2 ? 1 : nX1 == nX2 ? nY1 > nY2 ? 1: nY1 == nY2 ? 0 : -1 : -1 );
 }
 
-DBG_NAMEEX( OutputDevice )
-DBG_NAMEEX( Gradient )
 
 void OutputDevice::ImplDrawPolygon( const Polygon& rPoly, const PolyPolygon* pClipPolyPoly )
 {
@@ -564,8 +562,6 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
 void OutputDevice::DrawGradient( const Rectangle& rRect,
                                  const Gradient& rGradient )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     if ( mnDrawMode & DRAWMODE_NOGRADIENT )
         return;
@@ -692,8 +688,6 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
 void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
                                  const Gradient& rGradient )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     if( mbInitClipRegion )
         ImplInitClipRegion();
@@ -913,8 +907,6 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
 void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& rGradient,
                                        GDIMetaFile& rMtf )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rGradient, Gradient, NULL );
 
     Rectangle aRect( rRect );
 
@@ -954,7 +946,6 @@ void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& r
 
 void OutputDevice::DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Hatch aHatch( rHatch );
 
@@ -1030,7 +1021,6 @@ void OutputDevice::DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch
 void OutputDevice::AddHatchActions( const PolyPolygon& rPolyPoly, const Hatch& rHatch,
                                     GDIMetaFile& rMtf )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     PolyPolygon aPolyPoly( rPolyPoly );
     aPolyPoly.Optimize( POLY_OPTIMIZE_NO_SAME | POLY_OPTIMIZE_CLOSE );
diff --git a/vcl/source/gdi/outdev5.cxx b/vcl/source/gdi/outdev5.cxx
index 0b7ae3d..4c522a9 100644
--- a/vcl/source/gdi/outdev5.cxx
+++ b/vcl/source/gdi/outdev5.cxx
@@ -33,14 +33,12 @@
 
 // =======================================================================
 
-DBG_NAMEEX( OutputDevice )
 
 // =======================================================================
 
 void OutputDevice::DrawRect( const Rectangle& rRect,
                              sal_uLong nHorzRound, sal_uLong nVertRound )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaRoundRectAction( rRect, nHorzRound, nVertRound ) );
@@ -98,7 +96,6 @@ void OutputDevice::DrawRect( const Rectangle& rRect,
 
 void OutputDevice::DrawEllipse( const Rectangle& rRect )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaEllipseAction( rRect ) );
@@ -148,7 +145,6 @@ void OutputDevice::DrawEllipse( const Rectangle& rRect )
 void OutputDevice::DrawArc( const Rectangle& rRect,
                             const Point& rStartPt, const Point& rEndPt )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaArcAction( rRect, rStartPt, rEndPt ) );
@@ -194,7 +190,6 @@ void OutputDevice::DrawArc( const Rectangle& rRect,
 void OutputDevice::DrawPie( const Rectangle& rRect,
                             const Point& rStartPt, const Point& rEndPt )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaPieAction( rRect, rStartPt, rEndPt ) );
@@ -247,7 +242,6 @@ void OutputDevice::DrawPie( const Rectangle& rRect,
 void OutputDevice::DrawChord( const Rectangle& rRect,
                               const Point& rStartPt, const Point& rEndPt )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaChordAction( rRect, rStartPt, rEndPt ) );
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index 9d2e355..0a7df2c 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -44,13 +44,11 @@
 
 // ========================================================================
 
-DBG_NAMEEX( OutputDevice )
 
 // ------------------------------------------------------------------------
 
 void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLong nFlags )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     Rectangle aDstRect( PixelToLogic( Point() ), GetOutputSize() );
     aDstRect.Intersection( rRect );
@@ -148,7 +146,6 @@ void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLon
 
 void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, double fTransparency)
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // AW: Do NOT paint empty PolyPolygons
     if(!rB2DPolyPoly.count())
@@ -212,7 +209,6 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
 void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
                                     sal_uInt16 nTransparencePercent )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // short circuit for drawing an opaque polygon
     if( (nTransparencePercent < 1) || ((mnDrawMode & DRAWMODE_NOTRANSPARENCY) != 0) )
@@ -608,7 +604,6 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
 void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
                                     const Size& rSize, const Gradient& rTransparenceGradient )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     const Color aBlack( COL_BLACK );
 
diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx
index 6327749..ce5990e 100644
--- a/vcl/source/gdi/outmap.cxx
+++ b/vcl/source/gdi/outmap.cxx
@@ -44,10 +44,6 @@
 
 // =======================================================================
 
-DBG_NAMEEX( OutputDevice )
-DBG_NAMEEX( Polygon )
-DBG_NAMEEX( PolyPolygon )
-DBG_NAMEEX( Region )
 
 // =======================================================================
 
@@ -700,7 +696,6 @@ void OutputDevice::EnableMapMode( sal_Bool bEnable )
 
 void OutputDevice::SetMapMode()
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( mpMetaFile )
         mpMetaFile->AddAction( new MetaMapModeAction( MapMode() ) );
@@ -735,7 +730,6 @@ void OutputDevice::SetMapMode()
 
 void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     bool bRelMap = (rNewMapMode.GetMapUnit() == MAP_RELATIVE);
 
@@ -836,7 +830,6 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
 
 void OutputDevice::SetRelativeMapMode( const MapMode& rNewMapMode )
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // Ist der MapMode der gleiche wie vorher, dann mache nichts
     if ( maMapMode == rNewMapMode )
@@ -1021,7 +1014,6 @@ basegfx::B2DHomMatrix OutputDevice::ImplGetDeviceTransformation() const
 
 Point OutputDevice::LogicToPixel( const Point& rLogicPt ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap )
         return rLogicPt;
@@ -1038,7 +1030,6 @@ Point OutputDevice::LogicToPixel( const Point& rLogicPt ) const
 
 Size OutputDevice::LogicToPixel( const Size& rLogicSize ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap )
         return rLogicSize;
@@ -1055,7 +1046,6 @@ Size OutputDevice::LogicToPixel( const Size& rLogicSize ) const
 
 Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap || rLogicRect.IsEmpty() )
         return rLogicRect;
@@ -1078,8 +1068,6 @@ Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect ) const
 
 Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rLogicPoly, Polygon, NULL );
 
     if ( !mbMap )
         return rLogicPoly;
@@ -1111,8 +1099,6 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly ) const
 
 PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rLogicPolyPoly, PolyPolygon, NULL );
 
     if ( !mbMap )
         return rLogicPolyPoly;
@@ -1151,7 +1137,6 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo
 
 Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if(!mbMap || rLogicRegion.IsNull() || rLogicRegion.IsEmpty())
     {
@@ -1206,7 +1191,6 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const
 Point OutputDevice::LogicToPixel( const Point& rLogicPt,
                                   const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( rMapMode.IsDefault() )
         return rLogicPt;
@@ -1229,7 +1213,6 @@ Point OutputDevice::LogicToPixel( const Point& rLogicPt,
 Size OutputDevice::LogicToPixel( const Size& rLogicSize,
                                  const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( rMapMode.IsDefault() )
         return rLogicSize;
@@ -1252,7 +1235,6 @@ Size OutputDevice::LogicToPixel( const Size& rLogicSize,
 Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect,
                                       const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( rMapMode.IsDefault() || rLogicRect.IsEmpty() )
         return rLogicRect;
@@ -1281,8 +1263,6 @@ Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect,
 Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly,
                                     const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rLogicPoly, Polygon, NULL );
 
     if ( rMapMode.IsDefault() )
         return rLogicPoly;
@@ -1320,8 +1300,6 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly,
 PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly,
     const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rLogicPolyPoly, PolyPolygon, NULL );
 
     if ( rMapMode.IsDefault() )
         return rLogicPolyPoly;
@@ -1362,7 +1340,6 @@ basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogi
 
 Region OutputDevice::LogicToPixel( const Region& rLogicRegion, const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if(rMapMode.IsDefault() || rLogicRegion.IsNull() || rLogicRegion.IsEmpty())
     {
@@ -1416,7 +1393,6 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion, const MapMode& rM
 
 Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap )
         return rDevicePt;
@@ -1433,7 +1409,6 @@ Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const
 
 Size OutputDevice::PixelToLogic( const Size& rDeviceSize ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap )
         return rDeviceSize;
@@ -1450,7 +1425,6 @@ Size OutputDevice::PixelToLogic( const Size& rDeviceSize ) const
 
 Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if ( !mbMap || rDeviceRect.IsEmpty() )
         return rDeviceRect;
@@ -1473,8 +1447,6 @@ Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect ) const
 
 Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rDevicePoly, Polygon, NULL );
 
     if ( !mbMap )
         return rDevicePoly;
@@ -1506,8 +1478,6 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly ) const
 
 PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rDevicePolyPoly, PolyPolygon, NULL );
 
     if ( !mbMap )
         return rDevicePolyPoly;
@@ -1534,7 +1504,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo
 
 Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if(!mbMap || rDeviceRegion.IsNull() || rDeviceRegion.IsEmpty())
     {
@@ -1589,7 +1558,6 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const
 Point OutputDevice::PixelToLogic( const Point& rDevicePt,
                                   const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // Ist Default-MapMode, dann bereche nichts
     if ( rMapMode.IsDefault() )
@@ -1613,7 +1581,6 @@ Point OutputDevice::PixelToLogic( const Point& rDevicePt,
 Size OutputDevice::PixelToLogic( const Size& rDeviceSize,
                                  const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // Ist Default-MapMode, dann bereche nichts
     if ( rMapMode.IsDefault() )
@@ -1637,7 +1604,6 @@ Size OutputDevice::PixelToLogic( const Size& rDeviceSize,
 Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect,
                                       const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     // Ist Default-MapMode, dann bereche nichts
     if ( rMapMode.IsDefault() || rDeviceRect.IsEmpty() )
@@ -1667,8 +1633,6 @@ Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect,
 Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly,
                                     const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rDevicePoly, Polygon, NULL );
 
     // Ist Default-MapMode, dann bereche nichts
     if ( rMapMode.IsDefault() )
@@ -1707,8 +1671,6 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly,
 PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly,
     const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-    DBG_CHKOBJ( &rDevicePolyPoly, PolyPolygon, NULL );
 
     if ( rMapMode.IsDefault() )
         return rDevicePolyPoly;
@@ -1749,7 +1711,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo
 
 Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& rMapMode ) const
 {
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
 
     if(rMapMode.IsDefault() || rDeviceRegion.IsNull() || rDeviceRegion.IsEmpty())
     {
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 3ddc53d..6b16ac1 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -34,9 +34,6 @@
 
 //////////////////////////////////////////////////////////////////////////////
 
-DBG_NAME( Region )
-DBG_NAMEEX( Polygon )
-DBG_NAMEEX( PolyPolygon )
 
 //////////////////////////////////////////////////////////////////////////////
 
@@ -341,7 +338,6 @@ Region::Region(const Polygon& rPolygon)
     mpRegionBand(),
     mbIsNull(false)
 {
-    DBG_CHKOBJ( &rPolygon, Polygon, NULL );
 
     if(rPolygon.GetSize())
     {
@@ -355,7 +351,6 @@ Region::Region(const PolyPolygon& rPolyPoly)
     mpRegionBand(),
     mbIsNull(false)
 {
-    DBG_CHKOBJ( &rPolyPoly, PolyPolygon, NULL );
 
     if(rPolyPoly.Count())
     {
@@ -369,7 +364,6 @@ Region::Region(const basegfx::B2DPolyPolygon& rPolyPoly)
     mpRegionBand(),
     mbIsNull(false)
 {
-    DBG_CHKOBJ( &rPolyPoly, PolyPolygon, NULL );
 
     if(rPolyPoly.count())
     {
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 4268e0f..7dd4f2d 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -23,9 +23,6 @@
 
 //////////////////////////////////////////////////////////////////////////////
 
-DBG_NAME( RegionBand )
-DBG_NAMEEX( Polygon )
-DBG_NAMEEX( PolyPolygon )
 
 //////////////////////////////////////////////////////////////////////////////
 
@@ -33,7 +30,6 @@ RegionBand::RegionBand()
 :   mpFirstBand(0),
     mpLastCheckedBand(0)
 {
-    DBG_CTOR(RegionBand, ImplDbgTestRegionBand);
 }
 
 RegionBand::RegionBand(const RegionBand& rRef)
@@ -41,7 +37,6 @@ RegionBand::RegionBand(const RegionBand& rRef)
     mpLastCheckedBand(0)
 {
     *this = rRef;
-    DBG_CTOR(RegionBand, ImplDbgTestRegionBand);
 }
 
 RegionBand& RegionBand::operator=(const RegionBand& rRef)
@@ -67,8 +62,6 @@ RegionBand& RegionBand::operator=(const RegionBand& rRef)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
-    DBG_CHKOBJ(&rRef, RegionBand, ImplDbgTestRegionBand);
 
     return *this;
 }
@@ -88,7 +81,6 @@ RegionBand::RegionBand(const Rectangle& rRect)
     // Set left and right boundaries of the band
     mpFirstBand->Union(nLeft, nRight);
 
-    DBG_CTOR(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::implReset()
@@ -104,19 +96,15 @@ void RegionBand::implReset()
 
     mpLastCheckedBand = 0;
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 RegionBand::~RegionBand()
 {
     implReset();
-    DBG_DTOR(RegionBand, ImplDbgTestRegionBand);
 }
 
 bool RegionBand::operator==( const RegionBand& rRegionBand ) const
 {
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
-    DBG_CHKOBJ(&rRegionBand, RegionBand, ImplDbgTestRegionBand);
 
     // initialise pointers
     ImplRegionBand*      pOwnRectBand = mpFirstBand;
@@ -272,12 +260,10 @@ void RegionBand::load(SvStream& rIStrm)
         rIStrm >> nTmp16;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::save(SvStream& rOStrm) const
 {
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     ImplRegionBand* pBand = mpFirstBand;
 
     while(pBand)
@@ -346,7 +332,6 @@ void RegionBand::InsertBand(ImplRegionBand* pPreviousBand, ImplRegionBand* pBand
         pBandToInsert->mpPrevBand = pPreviousBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::processPoints()
@@ -360,7 +345,6 @@ void RegionBand::processPoints()
         pRegionBand = pRegionBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 /** This function is similar to the RegionBand::InsertBands() method.
@@ -409,7 +393,6 @@ void RegionBand::ImplAddMissingBands(const long nTop, const long nBottom)
                 nBottom));
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::CreateBandRange(long nYTop, long nYBottom)
@@ -435,7 +418,6 @@ void RegionBand::CreateBandRange(long nYTop, long nYBottom)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 bool RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLineId)
@@ -445,7 +427,6 @@ bool RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLi
     // lines consisting of a single point do not interest here
     if ( rStartPt == rEndPt )
     {
-        DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
         return true;
     }
 
@@ -527,7 +508,6 @@ bool RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLi
         InsertPoint( Point( nEndX, nEndY ), nLineId, true, eLineType );
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     return true;
 }
 
@@ -550,7 +530,6 @@ bool RegionBand::InsertPoint(const Point &rPoint, long nLineID, bool bEndPoint,
             if ( rPoint.Y() == mpLastCheckedBand->mnYTop )
             {
                 mpLastCheckedBand->InsertPoint( rPoint.X(), nLineID, bEndPoint, eLineType );
-                DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
                 return true;
             }
 
@@ -568,7 +547,6 @@ bool RegionBand::InsertPoint(const Point &rPoint, long nLineID, bool bEndPoint,
             if ( rPoint.Y() == mpLastCheckedBand->mnYTop )
             {
                 mpLastCheckedBand->InsertPoint( rPoint.X(), nLineID, bEndPoint, eLineType );
-                DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
                 return true;
             }
 
@@ -583,7 +561,6 @@ bool RegionBand::InsertPoint(const Point &rPoint, long nLineID, bool bEndPoint,
     // reinitialize pointer (should never be reached!)
     mpLastCheckedBand = mpFirstBand;
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     return false;
 }
 
@@ -666,7 +643,6 @@ bool RegionBand::OptimizeBandList()
     }
 #endif
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     return (0 != mpFirstBand);
 }
 
@@ -692,7 +668,6 @@ void RegionBand::Move(long nHorzMove, long nVertMove)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::Scale(double fScaleX, double fScaleY)
@@ -717,7 +692,6 @@ void RegionBand::Scale(double fScaleX, double fScaleY)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::InsertBands(long nTop, long nBottom)
@@ -727,7 +701,6 @@ void RegionBand::InsertBands(long nTop, long nBottom)
     {
         // add band with boundaries of the rectangle
         mpFirstBand = new ImplRegionBand( nTop, nBottom );
-        DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
         return;
     }
 
@@ -800,7 +773,6 @@ void RegionBand::InsertBands(long nTop, long nBottom)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
@@ -808,7 +780,6 @@ bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
     // boundary already included in band with height 1? -> nothing to do!
     if ( (pBand->mnYTop == pBand->mnYBottom) && (nYBandPosition == pBand->mnYTop) )
     {
-        DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
         return true;
     }
 
@@ -826,7 +797,6 @@ bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
         pBand->mnYBottom = nYBandPosition;
         pBand->mpNextBand = pNewBand;
 
-        DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
         return true;
     }
 
@@ -853,7 +823,6 @@ bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
         pBand->mnYBottom = nYBandPosition - 1;
         pBand->mpNextBand = pNewBand;
 
-        DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
         return true;
     }
 
@@ -871,7 +840,6 @@ bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
 
             // append band to the list
             pBand->mpNextBand = pNewBand;
-            DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
             return true;
         }
 
@@ -882,12 +850,10 @@ bool RegionBand::InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition)
 
             // append band to the list
             pBand->mpNextBand = pNewBand;
-            DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
             return true;
         }
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     return false;
 }
 
@@ -925,7 +891,6 @@ void RegionBand::Union(long nLeft, long nTop, long nRight, long nBottom)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::Intersect(long nLeft, long nTop, long nRight, long nBottom)
@@ -962,7 +927,6 @@ void RegionBand::Intersect(long nLeft, long nTop, long nRight, long nBottom)
         }
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::Union(const RegionBand& rSource)
@@ -987,7 +951,6 @@ void RegionBand::Union(const RegionBand& rSource)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::Exclude(long nLeft, long nTop, long nRight, long nBottom)
@@ -1029,7 +992,6 @@ void RegionBand::Exclude(long nLeft, long nTop, long nRight, long nBottom)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::XOr(long nLeft, long nTop, long nRight, long nBottom)
@@ -1071,7 +1033,6 @@ void RegionBand::XOr(long nLeft, long nTop, long nRight, long nBottom)
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 void RegionBand::Intersect(const RegionBand& rSource)
@@ -1153,7 +1114,6 @@ void RegionBand::Intersect(const RegionBand& rSource)
         }
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 }
 
 bool RegionBand::Exclude(const RegionBand& rSource)
@@ -1178,20 +1138,17 @@ bool RegionBand::Exclude(const RegionBand& rSource)
         // to test less bands, already check in the loop
         if ( !OptimizeBandList() )
         {
-            DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
             return false;
         }
 
         pBand = pBand->mpNextBand;
     }
 
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
     return true;
 }
 
 Rectangle RegionBand::GetBoundRect() const
 {
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 
     // get the boundaries of the first band
     long nYTop(mpFirstBand->mnYTop);
@@ -1238,7 +1195,6 @@ void RegionBand::XOr(const RegionBand& rSource)
 
 bool RegionBand::IsInside(const Point& rPoint) const
 {
-    DBG_CHKTHIS(RegionBand, ImplDbgTestRegionBand);
 
     // search band list
     ImplRegionBand* pBand = mpFirstBand;
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index b6a0029..1b00655 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -27,7 +27,6 @@
 #include <wall2.hxx>
 #include <vcl/dibtools.hxx>
 
-DBG_NAME( Wallpaper )
 
 // -----------------------------------------------------------------------
 
@@ -202,7 +201,6 @@ inline void Wallpaper::ImplMakeUnique( sal_Bool bReleaseCache )
 
 Wallpaper::Wallpaper()
 {
-    DBG_CTOR( Wallpaper, NULL );
 
     static ImplWallpaper aStaticImplWallpaper;
 
@@ -214,8 +212,6 @@ Wallpaper::Wallpaper()
 
 Wallpaper::Wallpaper( const Wallpaper& rWallpaper )
 {
-    DBG_CTOR( Wallpaper, NULL );
-    DBG_CHKOBJ( &rWallpaper, Wallpaper, NULL );
     DBG_ASSERT( rWallpaper.mpImplWallpaper->mnRefCount < 0xFFFFFFFE, "Wallpaper: RefCount overflow" );
 
     // Instance Daten uebernehmen und Referenzcounter erhoehen
@@ -229,7 +225,6 @@ Wallpaper::Wallpaper( const Wallpaper& rWallpaper )
 
 Wallpaper::Wallpaper( const Color& rColor )
 {
-    DBG_CTOR( Wallpaper, NULL );
 
     mpImplWallpaper             = new ImplWallpaper;
     mpImplWallpaper->maColor    = rColor;
@@ -240,7 +235,6 @@ Wallpaper::Wallpaper( const Color& rColor )
 
 Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
 {
-    DBG_CTOR( Wallpaper, NULL );
 
     mpImplWallpaper             = new ImplWallpaper;
     mpImplWallpaper->mpBitmap   = new BitmapEx( rBmpEx );
@@ -251,7 +245,6 @@ Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
 
 Wallpaper::Wallpaper( const Gradient& rGradient )
 {
-    DBG_CTOR( Wallpaper, NULL );
 
     mpImplWallpaper             = new ImplWallpaper;
     mpImplWallpaper->mpGradient = new Gradient( rGradient );
@@ -262,7 +255,6 @@ Wallpaper::Wallpaper( const Gradient& rGradient )
 
 Wallpaper::~Wallpaper()
 {
-    DBG_DTOR( Wallpaper, NULL );
 
     // Wenn es keine statischen ImpDaten sind, dann loeschen, wenn es
     // die letzte Referenz ist, sonst Referenzcounter decrementieren
@@ -279,7 +271,6 @@ Wallpaper::~Wallpaper()
 
 void Wallpaper::SetColor( const Color& rColor )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     ImplMakeUnique();
     mpImplWallpaper->maColor = rColor;
@@ -292,7 +283,6 @@ void Wallpaper::SetColor( const Color& rColor )
 
 const Color& Wallpaper::GetColor() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     return mpImplWallpaper->maColor;
 }
@@ -301,7 +291,6 @@ const Color& Wallpaper::GetColor() const
 
 void Wallpaper::SetStyle( WallpaperStyle eStyle )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     ImplMakeUnique( sal_False );
 
@@ -317,7 +306,6 @@ void Wallpaper::SetStyle( WallpaperStyle eStyle )
 
 WallpaperStyle Wallpaper::GetStyle() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     return mpImplWallpaper->meStyle;
 }
@@ -326,7 +314,6 @@ WallpaperStyle Wallpaper::GetStyle() const
 
 void Wallpaper::SetBitmap( const BitmapEx& rBitmap )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     if ( !rBitmap )
     {
@@ -354,7 +341,6 @@ void Wallpaper::SetBitmap( const BitmapEx& rBitmap )
 
 BitmapEx Wallpaper::GetBitmap() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     if ( mpImplWallpaper->mpBitmap )
         return *(mpImplWallpaper->mpBitmap);
@@ -369,7 +355,6 @@ BitmapEx Wallpaper::GetBitmap() const
 
 sal_Bool Wallpaper::IsBitmap() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     return (mpImplWallpaper->mpBitmap != 0);
 }
@@ -379,7 +364,6 @@ sal_Bool Wallpaper::IsBitmap() const
 
 void Wallpaper::SetGradient( const Gradient& rGradient )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     ImplMakeUnique();
 
@@ -396,7 +380,6 @@ void Wallpaper::SetGradient( const Gradient& rGradient )
 
 Gradient Wallpaper::GetGradient() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     if( WALLPAPER_APPLICATIONGRADIENT == mpImplWallpaper->meStyle )
         return ImplGetApplicationGradient();
@@ -413,7 +396,6 @@ Gradient Wallpaper::GetGradient() const
 
 sal_Bool Wallpaper::IsGradient() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     return (mpImplWallpaper->mpGradient != 0);
 }
@@ -439,7 +421,6 @@ Gradient Wallpaper::ImplGetApplicationGradient() const
 
 void Wallpaper::SetRect( const Rectangle& rRect )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     ImplMakeUnique( sal_False );
 
@@ -464,7 +445,6 @@ void Wallpaper::SetRect( const Rectangle& rRect )
 
 Rectangle Wallpaper::GetRect() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     if ( mpImplWallpaper->mpRect )
         return *(mpImplWallpaper->mpRect);
@@ -479,7 +459,6 @@ Rectangle Wallpaper::GetRect() const
 
 sal_Bool Wallpaper::IsRect() const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
 
     return (mpImplWallpaper->mpRect != 0);
 }
@@ -513,8 +492,6 @@ sal_Bool Wallpaper::IsScrollable() const
 
 Wallpaper& Wallpaper::operator=( const Wallpaper& rWallpaper )
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
-    DBG_CHKOBJ( &rWallpaper, Wallpaper, NULL );
     DBG_ASSERT( rWallpaper.mpImplWallpaper->mnRefCount < 0xFFFFFFFE, "Wallpaper: RefCount overflow" );
 
     // Zuerst Referenzcounter erhoehen, damit man sich selbst zuweisen kann
@@ -540,8 +517,6 @@ Wallpaper& Wallpaper::operator=( const Wallpaper& rWallpaper )
 
 sal_Bool Wallpaper::operator==( const Wallpaper& rWallpaper ) const
 {
-    DBG_CHKTHIS( Wallpaper, NULL );
-    DBG_CHKOBJ( &rWallpaper, Wallpaper, NULL );
 
     if ( mpImplWallpaper == rWallpaper.mpImplWallpaper )
         return sal_True;
diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx
index 653dac9..345b0ab 100644
--- a/vcl/source/window/accel.cxx
+++ b/vcl/source/window/accel.cxx
@@ -45,7 +45,6 @@ public:
 
 // =======================================================================
 
-DBG_NAME( Accelerator )
 
 // =======================================================================
 
@@ -220,7 +219,6 @@ void Accelerator::ImplDeleteData()
 void Accelerator::ImplInsertAccel( sal_uInt16 nItemId, const KeyCode& rKeyCode,
                                    sal_Bool bEnable, Accelerator* pAutoAccel )
 {
-    DBG_CHKTHIS( Accelerator, NULL );

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list