From b58808f111d34758490c3a2532077a95421eb28b Mon Sep 17 00:00:00 2001 From: mbs Date: Mon, 6 Mar 2023 20:05:41 +0000 Subject: [PATCH] fixed a debug message problem --- src/CAM/CAM_Application.cxx | 2 +- src/CAM/CAM_Module.cxx | 2 +- src/LightApp/LightApp_Application.cxx | 2 +- src/LightApp/LightApp_DataModel.cxx | 2 +- src/LightApp/LightApp_DataObject.cxx | 2 +- src/LightApp/LightApp_DataOwner.cxx | 2 +- src/LightApp/LightApp_Displayer.cxx | 2 +- src/LightApp/LightApp_Driver.cxx | 2 +- src/LightApp/LightApp_GVSelector.cxx | 2 +- src/LightApp/LightApp_Module.cxx | 2 +- src/LightApp/LightApp_OBSelector.cxx | 2 +- src/LightApp/LightApp_Operation.cxx | 2 +- src/LightApp/LightApp_Selection.cxx | 2 +- src/LightApp/LightApp_SelectionMgr.cxx | 2 +- src/LightApp/LightApp_ShowHideOp.cxx | 2 +- src/OCCViewer/OCCViewer_AISSelector.cxx | 2 +- src/OCCViewer/OCCViewer_VService.cxx | 2 +- src/OCCViewer/OCCViewer_ViewFrame.cxx | 2 +- src/OCCViewer/OCCViewer_ViewManager.cxx | 2 +- src/OCCViewer/OCCViewer_ViewModel.cxx | 2 +- src/OCCViewer/OCCViewer_ViewPort.cxx | 2 +- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 2 +- src/OCCViewer/OCCViewer_ViewWindow.cxx | 2 +- src/SVTK/SVTK_Renderer.cxx | 2 +- src/SVTK/SVTK_ViewWindow.cxx | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 29903de7b..8b8b7392f 100644 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -48,7 +48,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "CAM_Application"; +#define MBCLASSNAME "CAM_Application" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/CAM/CAM_Module.cxx b/src/CAM/CAM_Module.cxx index c6ea6d044..1fd103da9 100644 --- a/src/CAM/CAM_Module.cxx +++ b/src/CAM/CAM_Module.cxx @@ -39,7 +39,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "CAM_Module"; +#define MBCLASSNAME "CAM_Module" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 14bd4e9d2..85c4834dc 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -198,7 +198,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Application"; +#define MBCLASSNAME "LightApp_Application" #include "MBDebug.h" #include "MBSUIT.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_DataModel.cxx b/src/LightApp/LightApp_DataModel.cxx index 4de186632..6b3b173d1 100644 --- a/src/LightApp/LightApp_DataModel.cxx +++ b/src/LightApp/LightApp_DataModel.cxx @@ -36,7 +36,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_DataModel"; +#define MBCLASSNAME "LightApp_DataModel" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_DataObject.cxx b/src/LightApp/LightApp_DataObject.cxx index 2483a7ca2..bd7c1b0e5 100644 --- a/src/LightApp/LightApp_DataObject.cxx +++ b/src/LightApp/LightApp_DataObject.cxx @@ -38,7 +38,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_DataObject"; +#define MBCLASSNAME "LightApp_DataObject" #include "MBDebug.h" #include "MBSUIT.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_DataOwner.cxx b/src/LightApp/LightApp_DataOwner.cxx index bce1b7b40..b1f9f66e1 100644 --- a/src/LightApp/LightApp_DataOwner.cxx +++ b/src/LightApp/LightApp_DataOwner.cxx @@ -24,7 +24,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_DataOwner"; +#define MBCLASSNAME "LightApp_DataOwner" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Displayer.cxx b/src/LightApp/LightApp_Displayer.cxx index 60ec04352..e8a9a7d47 100644 --- a/src/LightApp/LightApp_Displayer.cxx +++ b/src/LightApp/LightApp_Displayer.cxx @@ -41,7 +41,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Displayer"; +#define MBCLASSNAME "LightApp_Displayer" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Driver.cxx b/src/LightApp/LightApp_Driver.cxx index 66574bd03..d64d6987d 100644 --- a/src/LightApp/LightApp_Driver.cxx +++ b/src/LightApp/LightApp_Driver.cxx @@ -41,7 +41,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Driver"; +#define MBCLASSNAME "LightApp_Driver" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_GVSelector.cxx b/src/LightApp/LightApp_GVSelector.cxx index 8598c078d..2ce403f22 100644 --- a/src/LightApp/LightApp_GVSelector.cxx +++ b/src/LightApp/LightApp_GVSelector.cxx @@ -27,7 +27,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_GVSelector"; +#define MBCLASSNAME "LightApp_GVSelector" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 91b66448b..0ff6109ef 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -102,7 +102,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Module"; +#define MBCLASSNAME "LightApp_Module" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_OBSelector.cxx b/src/LightApp/LightApp_OBSelector.cxx index 631c9d20d..0ccd1696b 100644 --- a/src/LightApp/LightApp_OBSelector.cxx +++ b/src/LightApp/LightApp_OBSelector.cxx @@ -36,7 +36,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_OBSelector"; +#define MBCLASSNAME "LightApp_OBSelector" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Operation.cxx b/src/LightApp/LightApp_Operation.cxx index 68876ddb6..4b1c572ba 100644 --- a/src/LightApp/LightApp_Operation.cxx +++ b/src/LightApp/LightApp_Operation.cxx @@ -35,7 +35,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Operation"; +#define MBCLASSNAME "LightApp_Operation" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_Selection.cxx b/src/LightApp/LightApp_Selection.cxx index 29abb6b2f..7026e4602 100644 --- a/src/LightApp/LightApp_Selection.cxx +++ b/src/LightApp/LightApp_Selection.cxx @@ -39,7 +39,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_Selection"; +#define MBCLASSNAME "LightApp_Selection" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_SelectionMgr.cxx b/src/LightApp/LightApp_SelectionMgr.cxx index 98d15fd61..4a2220a15 100644 --- a/src/LightApp/LightApp_SelectionMgr.cxx +++ b/src/LightApp/LightApp_SelectionMgr.cxx @@ -42,7 +42,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_SelectionMgr"; +#define MBCLASSNAME "LightApp_SelectionMgr" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/LightApp/LightApp_ShowHideOp.cxx b/src/LightApp/LightApp_ShowHideOp.cxx index e4305fad7..a8c94f9e2 100644 --- a/src/LightApp/LightApp_ShowHideOp.cxx +++ b/src/LightApp/LightApp_ShowHideOp.cxx @@ -37,7 +37,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "LightApp_ShowHideOp"; +#define MBCLASSNAME "LightApp_ShowHideOp" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_AISSelector.cxx b/src/OCCViewer/OCCViewer_AISSelector.cxx index 1eb7a571f..6b551f47a 100644 --- a/src/OCCViewer/OCCViewer_AISSelector.cxx +++ b/src/OCCViewer/OCCViewer_AISSelector.cxx @@ -24,7 +24,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_AISSelector"; +#define MBCLASSNAME "OCCViewer_AISSelector" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_VService.cxx b/src/OCCViewer/OCCViewer_VService.cxx index 62d428c14..66c046e11 100644 --- a/src/OCCViewer/OCCViewer_VService.cxx +++ b/src/OCCViewer/OCCViewer_VService.cxx @@ -40,7 +40,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_VService"; +#define MBCLASSNAME "OCCViewer_VService" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewFrame.cxx b/src/OCCViewer/OCCViewer_ViewFrame.cxx index 9f7e0595f..c01e6b1d4 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.cxx +++ b/src/OCCViewer/OCCViewer_ViewFrame.cxx @@ -38,7 +38,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewFrame"; +#define MBCLASSNAME "OCCViewer_ViewFrame" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewManager.cxx b/src/OCCViewer/OCCViewer_ViewManager.cxx index b20fcf968..b65ccbe28 100644 --- a/src/OCCViewer/OCCViewer_ViewManager.cxx +++ b/src/OCCViewer/OCCViewer_ViewManager.cxx @@ -26,7 +26,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewManager"; +#define MBCLASSNAME "OCCViewer_ViewManager" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 3491a28d2..40844ff3e 100644 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -71,7 +71,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewModel"; +#define MBCLASSNAME "OCCViewer_ViewModel" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewPort.cxx b/src/OCCViewer/OCCViewer_ViewPort.cxx index d9f28d7c3..ed46e3b04 100644 --- a/src/OCCViewer/OCCViewer_ViewPort.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort.cxx @@ -52,7 +52,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewPort"; +#define MBCLASSNAME "OCCViewer_ViewPort" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 2410389e6..cd7a35328 100644 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -52,7 +52,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewPort3d"; +#define MBCLASSNAME "OCCViewer_ViewPort3d" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index d3118166d..1872e4531 100644 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -99,7 +99,7 @@ //--------------------------------------------------------- #define USE_DEBUG -static const char *dbg_class = "OCCViewer_ViewWindow"; +#define MBCLASSNAME "OCCViewer_ViewWindow" #include "MBDebug.h" //--------------------------------------------------------- diff --git a/src/SVTK/SVTK_Renderer.cxx b/src/SVTK/SVTK_Renderer.cxx index e713be951..693ae6c5d 100644 --- a/src/SVTK/SVTK_Renderer.cxx +++ b/src/SVTK/SVTK_Renderer.cxx @@ -200,7 +200,7 @@ SVTK_Renderer void* theClientData, void* vtkNotUsed(theCallData)) { - DBG_FUN(); + DBG_FUNC(); SVTK_Renderer* self = reinterpret_cast(theClientData); switch(theEvent){ diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 63a0af406..0d3e7ca71 100644 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -2825,7 +2825,7 @@ void SVTK_ViewWindow::ProcessEvents(vtkObject* vtkNotUsed(theObject), void* theClientData, void* /*theCallData*/) { - DBG_FUN(); + DBG_FUNC(); SVTK_ViewWindow* self = reinterpret_cast(theClientData); if(self) self->emitTransformed(); -- 2.39.2