summaryrefslogtreecommitdiffstats
path: root/qtools/qglobal.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
commit583cc3299ac171f473e4221b0b535ea616e4db03 (patch)
treee0730802a8bb7eac348a5e39cffb88118aa42020 /qtools/qglobal.cpp
parent0c9bfb1e7fee31b0f35201e255096df4f6451035 (diff)
downloadDoxygen-583cc3299ac171f473e4221b0b535ea616e4db03.zip
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.gz
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.bz2
Release-1.2.4-20010107
Diffstat (limited to 'qtools/qglobal.cpp')
-rw-r--r--qtools/qglobal.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/qtools/qglobal.cpp b/qtools/qglobal.cpp
index 2789e30..50f5202 100644
--- a/qtools/qglobal.cpp
+++ b/qtools/qglobal.cpp
@@ -589,8 +589,12 @@ void qObsolete( const char *obj, const char *oldfunc, const char *newfunc )
return;
if ( !firstObsoleteWarning(obj, oldfunc) )
return;
- qDebug( "%s::%s: This function is obsolete, use %s instead",
- obj, oldfunc, newfunc );
+ if ( obj )
+ qDebug( "%s::%s: This function is obsolete, use %s instead.",
+ obj, oldfunc, newfunc );
+ else
+ qDebug( "%s: This function is obsolete, use %s instead.",
+ oldfunc, newfunc );
}
void qObsolete( const char *obj, const char *oldfunc )
@@ -599,7 +603,10 @@ void qObsolete( const char *obj, const char *oldfunc )
return;
if ( !firstObsoleteWarning(obj, oldfunc) )
return;
- qDebug( "%s::%s: This function is obsolete.", obj, oldfunc );
+ if ( obj )
+ qDebug( "%s::%s: This function is obsolete.", obj, oldfunc );
+ else
+ qDebug( "%s: This function is obsolete.", oldfunc );
}
void qObsolete( const char *message )