From 80dc1e5317f9bf799df2493381484b1b65e77b5f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 5 Sep 2019 11:02:47 +0900 Subject: Added tqDebug/tqWarning/tqFatal functions that takes a TQCString argument. This fixes FTBFS of examples caused by previous ambiguous call and solves bug 3021. Signed-off-by: Michele Calgaro --- src/tools/qglobal.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/tools/qglobal.cpp') diff --git a/src/tools/qglobal.cpp b/src/tools/qglobal.cpp index e0a198ca3..e1ce5d5b9 100644 --- a/src/tools/qglobal.cpp +++ b/src/tools/qglobal.cpp @@ -528,6 +528,11 @@ void tqDebug( const char *msg, ... ) handle_buffer(buf, TQtDebugMsg); } +void tqDebug( const TQCString &s ) +{ + tqDebug(s.data()); +} + void tqWarning( const TQString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -558,6 +563,11 @@ void tqWarning( const char *msg, ... ) handle_buffer(buf, TQtWarningMsg); } +void tqWarning( const TQCString &s ) +{ + tqWarning(s.data()); +} + void tqFatal( const TQString &msg ) { char buf[QT_BUFFER_LENGTH]; @@ -588,6 +598,11 @@ void tqFatal( const char *msg, ... ) handle_buffer(buf, TQtFatalMsg); } +void tqFatal( const TQCString &s ) +{ + tqWarning(s.data()); +} + /*! \relates TQApplication -- cgit v1.2.1