made file function inline static

This commit is contained in:
itsmattkc
2021-04-01 16:40:28 +11:00
parent 2d20673fe8
commit f3efab1da1
2 changed files with 8 additions and 10 deletions
+8 -1
View File
@@ -84,7 +84,14 @@ public:
*/
static bool RenameFileAllowOverwrite(const QString& from, const QString& to);
static QString GetFormattedExecutableForPlatform(QString unformatted);
inline static QString GetFormattedExecutableForPlatform(QString unformatted)
{
#ifdef Q_OS_WINDOWS
unformatted.append(QStringLiteral(".exe"));
#endif
return unformatted;
}
};