linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06362
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3160: remove a debug counter that has served its purpose
------------------------------------------------------------
revno: 3160
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2012-12-20 20:43:01 +0100
message:
remove a debug counter that has served its purpose
modified:
dwt/src/Widget.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/src/Widget.cpp'
--- dwt/src/Widget.cpp 2012-11-27 20:54:06 +0000
+++ dwt/src/Widget.cpp 2012-12-20 19:43:01 +0000
@@ -55,14 +55,14 @@
GlobalAtom Widget::propAtom(_T("dwt::Widget*"));
-#ifdef _DEBUG
+#ifdef DWT_DEBUG_WIDGETS
int widgetCount;
#endif
Widget::Widget(Widget* parent_, Dispatcher& dispatcher_) :
hwnd(NULL), parent(parent_), dispatcher(dispatcher_)
{
-#ifdef _DEBUG
+#ifdef DWT_DEBUG_WIDGETS
++widgetCount;
printf("created a dwt widget; count: %d\n", widgetCount);
#endif
@@ -72,7 +72,7 @@
if(hwnd) {
::RemoveProp(hwnd, propAtom);
}
-#ifdef _DEBUG
+#ifdef DWT_DEBUG_WIDGETS
--widgetCount;
printf("destroying a dwt widget; count: %d\n", widgetCount);
#endif