diff options
Diffstat (limited to 'qtools/qcstring.h')
-rw-r--r-- | qtools/qcstring.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h index 032d731..1e5f6f8 100644 --- a/qtools/qcstring.h +++ b/qtools/qcstring.h @@ -450,5 +450,15 @@ Q_EXPORT inline QCString operator+( char c1, const QCString &s2 ) return tmp; } +inline const char *qPrint(const char *s) +{ + if (s) return s; else return ""; +} + +inline const char *qPrint(const QCString &s) +{ + if (!s.isEmpty()) return s.data(); else return ""; +} + #endif // QCSTRING_H |