0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 00:27:55 +08:00

(profiler_gui/globals.h) auto toUnicode() return type

This commit is contained in:
Victor Zarubkin 2016-08-09 01:29:24 +03:00
parent 66709981a8
commit d8ccff0788

View File

@ -58,7 +58,7 @@ namespace profiler_gui {
typedef ::std::vector<ProfBlock> ProfBlocks;
template <class T>
inline QString toUnicode(const T& _inputString)
inline auto toUnicode(const T& _inputString) -> decltype(QTextCodec::codecForLocale()->toUnicode(_inputString))
{
return QTextCodec::codecForLocale()->toUnicode(_inputString);
}