mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Convert QTStr macro to inline function
Using inline functions improves IDE integration and avoids potential pitfalls of that using macros has.
This commit is contained in:
parent
b131bdadca
commit
44f3f79296
|
@ -250,7 +250,10 @@ inline const char *Str(const char *lookup)
|
|||
{
|
||||
return App()->GetString(lookup);
|
||||
}
|
||||
#define QTStr(lookupVal) QString::fromUtf8(Str(lookupVal))
|
||||
inline QString QTStr(const char *lookupVal)
|
||||
{
|
||||
return QString::fromUtf8(Str(lookupVal));
|
||||
}
|
||||
|
||||
bool GetFileSafeName(const char *name, std::string &file);
|
||||
bool GetClosestUnusedFileName(std::string &path, const char *extension);
|
||||
|
|
Loading…
Reference in a new issue