diff --git a/profiler_gui/globals.h b/profiler_gui/globals.h index 0c1ca74..5c3c7de 100644 --- a/profiler_gui/globals.h +++ b/profiler_gui/globals.h @@ -58,7 +58,7 @@ namespace profiler_gui { typedef ::std::vector ProfBlocks; template - inline QString toUnicode(const T& _inputString) + inline auto toUnicode(const T& _inputString) -> decltype(QTextCodec::codecForLocale()->toUnicode(_inputString)) { return QTextCodec::codecForLocale()->toUnicode(_inputString); }