diff options
author | Michele Calgaro <[email protected]> | 2019-09-05 11:02:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-09-05 11:02:47 +0900 |
commit | 80dc1e5317f9bf799df2493381484b1b65e77b5f (patch) | |
tree | dc06372707e8c80d66b214ae30bee58a2c14ec8c /src/tools/qglobal.cpp | |
parent | aae0287741331748bf0c89cbe4db025bb8cf3af2 (diff) | |
download | tqt3-80dc1e5317f9bf799df2493381484b1b65e77b5f.tar.gz tqt3-80dc1e5317f9bf799df2493381484b1b65e77b5f.zip |
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 <[email protected]>
Diffstat (limited to 'src/tools/qglobal.cpp')
-rw-r--r-- | src/tools/qglobal.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 |