From 3823c75b929667be742871103295ed225fb570f8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 23 May 2019 13:12:27 +0900 Subject: Added utility functions tqDebug/tqWarning/tqFatal based on TQString parameter. Signed-off-by: Michele Calgaro (cherry picked from commit d63a113c5c0f9d43d71fc6486244b4382459a07a) --- src/tools/ntqglobal.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/tools/ntqglobal.h') diff --git a/src/tools/ntqglobal.h b/src/tools/ntqglobal.h index bc67fcae4..9b0dbed20 100644 --- a/src/tools/ntqglobal.h +++ b/src/tools/ntqglobal.h @@ -754,7 +754,7 @@ typedef TQ_UINT64 TQ_ULLONG; // unsigned long long // class TQDataStream; - +class TQString; // // Feature subsetting @@ -975,19 +975,22 @@ Q_EXPORT int qWinVersion(); #endif -Q_EXPORT void tqDebug( const char *, ... ) // print debug message +Q_EXPORT void tqDebug( const TQString& ); // print debug message +Q_EXPORT void tqDebug( const char *, ... ) // print debug message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void tqWarning( const char *, ... ) // print warning message +Q_EXPORT void tqWarning( const TQString& ); // print warning message +Q_EXPORT void tqWarning( const char *, ... ) // print warning message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void tqFatal( const char *, ... ) // print fatal message and exit +Q_EXPORT void tqFatal( const TQString& ); // print fatal message and exit +Q_EXPORT void tqFatal( const char *, ... ) // print fatal message and exit #if defined(Q_CC_GNU) __attribute__ ((format (printf, 1, 2))) #endif -- cgit v1.2.1