Skip to content

qtglrenderer.cc: Fix compiling

Raul Tambre requested to merge (removed):qtql_fix into master

46bfb7d2 fixed a format warning without checking if it actually compiled. toUtf8() returns QByteArray so we need to assign it to a temporary variable to be able to get the raw string data from it.

../ext/qt/qtglrenderer.cc:724:19: error: cannot pass non-trivial object of type 'QByteArray' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]
            "%s", m_errorString.toUtf8());
             ~~   ^~~~~~~~~~~~~~~~~~~~~~
Edited by Raul Tambre

Merge request reports