diff options
Diffstat (limited to 'tests/returning-data-from-temporary/main.cpp')
-rw-r--r-- | tests/returning-data-from-temporary/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/returning-data-from-temporary/main.cpp b/tests/returning-data-from-temporary/main.cpp index 1b84fc14..3643efe9 100644 --- a/tests/returning-data-from-temporary/main.cpp +++ b/tests/returning-data-from-temporary/main.cpp @@ -131,6 +131,7 @@ void testAssignment() const char *c8 = str.toUtf8(); // Warn const char *c9 = str.toLatin1(); // Warn const char *c10 = returnsByteArray(); // Warn + const char* buffer = QByteArray("Hello").constData(); // Warn } const char * testByParam(QByteArray &ba, QString &foo, QByteArray ba2) |