Revert the qstr definition to be compiled with Qt 5.9

This commit is contained in:
Anatoly Shirokov 2018-02-13 08:46:34 +03:00
parent 6ddd55a28a
commit 001068cb2c
1 changed files with 1 additions and 1 deletions

View File

@ -54,4 +54,4 @@ void as_const(const T&&) = delete;
#include <cstdint> #include <cstdint>
#define qsl(s) QStringLiteral(s) #define qsl(s) QStringLiteral(s)
#define qstr(s) QLatin1String(s, s + sizeof(s)) #define qstr(s) QLatin1String(s, static_cast<int>(sizeof(s)-1))