summaryrefslogtreecommitdiffstats
path: root/qtools/qcstring.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-06-25 11:31:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-06-25 11:31:51 (GMT)
commitc37c8626674dd6ba0d53dcad84dd4bb5d92005a4 (patch)
treefa51c4ac8c1fe241b2d6c4af9d2f9a1297ce8e0a /qtools/qcstring.h
parent0c6ee149829948582e5e5c1b96c8b3105b02672a (diff)
downloadDoxygen-c37c8626674dd6ba0d53dcad84dd4bb5d92005a4.zip
Doxygen-c37c8626674dd6ba0d53dcad84dd4bb5d92005a4.tar.gz
Doxygen-c37c8626674dd6ba0d53dcad84dd4bb5d92005a4.tar.bz2
Release-1.7.1
Diffstat (limited to 'qtools/qcstring.h')
-rw-r--r--qtools/qcstring.h10
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