Remove the qs() macro.
authorOlivier Goffart <olivier.goffart@nokia.com>
Fri, 8 Jul 2011 09:11:39 +0000 (11:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 8 Jul 2011 09:22:30 +0000 (11:22 +0200)
There is tootoo many risks of conflicts with existing code.

QStringLiteral is not that hard to type. And if users want to use qs
they can still define it in their own headers.

Change-Id: I7da4772d902033fa163f5177c012b5d0e87332d7
Reviewed-on: http://codereview.qt.nokia.com/1357
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qstring.h

index c10af45..de973a8 100644 (file)
@@ -148,10 +148,6 @@ template<int n> struct QConstStringData
 # define QStringLiteral(str) QLatin1String(str)
 #endif
 
-#ifndef QT_NO_KEYWORDS
-#define qs(str) QStringLiteral(str)
-#endif
-
 class Q_CORE_EXPORT QString
 {
 public: