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:
parent
66709981a8
commit
d8ccff0788
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user