generic: misc cleanups

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-04-30 00:30:19 +00:00
parent 795dbcc1fd
commit 344cd812dc
3 changed files with 5 additions and 12 deletions

View file

@ -696,7 +696,7 @@ static QString maybeDemangledName(char *name)
} }
#endif #endif
QString kRealBacktrace(int levels) QString kBacktrace(int levels)
{ {
QString s; QString s;
#ifdef HAVE_BACKTRACE #ifdef HAVE_BACKTRACE

View file

@ -72,13 +72,6 @@ KDECORE_EXPORT QDebug kDebugStream(QtMsgType level, int area, const char *file =
*/ */
KDECORE_EXPORT QDebug kDebugDevNull(); KDECORE_EXPORT QDebug kDebugDevNull();
/**
* @internal
* The actual backtrace.
*/
KDECORE_EXPORT QString kRealBacktrace(int);
/** /**
* \relates KGlobal * \relates KGlobal
* Returns a backtrace. * Returns a backtrace.
@ -89,9 +82,9 @@ KDECORE_EXPORT QString kRealBacktrace(int);
* @return a backtrace * @return a backtrace
*/ */
#if !defined(KDE_NO_DEBUG_OUTPUT) #if !defined(KDE_NO_DEBUG_OUTPUT)
inline QString kBacktrace(int levels=-1) { return kRealBacktrace(levels); } KDECORE_EXPORT QString kBacktrace(int levels=-1);
#else #else
static inline QString kBacktrace(int=-1) { return QString(); } inline QString kBacktrace(int=-1) { return QString(); };
#endif #endif
/** /**