Build with -DQT_NO_CAST_TO_ASCII.

This commit is contained in:
Felix Geyer 2012-04-22 00:55:52 +02:00
parent 0bcce7ce7f
commit 82f1cbb3c9
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ macro(add_gcc_compiler_flags FLAGS)
add_gcc_compiler_cflags("${FLAGS}")
endmacro(add_gcc_compiler_flags)
add_definitions(-DQT_NO_KEYWORDS -DQT_NO_EXCEPTIONS -DQT_NO_STL -DQT_STRICT_ITERATORS)
add_definitions(-DQT_NO_KEYWORDS -DQT_NO_EXCEPTIONS -DQT_NO_STL -DQT_STRICT_ITERATORS -DQT_NO_CAST_TO_ASCII)
add_gcc_compiler_flags("-ansi -fno-common -fstack-protector -D_FORTIFY_SOURCE=2")
add_gcc_compiler_flags("-Wall -Wextra -Wundef -Wpointer-arith -Wno-long-long")

View File

@ -32,7 +32,7 @@ namespace QTest {
char *toString(const Uuid &uuid)
{
QByteArray ba = "Uuid(";
ba += uuid.toBase64();
ba += uuid.toBase64().toAscii().constData();
ba += ")";
return qstrdup(ba.data());
}