Delete inline in some functions

This commit is contained in:
David Kocik 2021-08-12 12:24:58 +02:00
parent 66435887ea
commit 483684f702

View File

@ -37,7 +37,7 @@ enum TagCheckResult
TagCheckNotCompatible TagCheckNotCompatible
}; };
// returns if in mode defined by tag // returns if in mode defined by tag
inline TagCheckResult tag_check_mode(const std::string& tag) TagCheckResult tag_check_mode(const std::string& tag)
{ {
std::vector<std::string> allowed_tags = {"simple", "advanced", "expert"}; std::vector<std::string> allowed_tags = {"simple", "advanced", "expert"};
if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end())
@ -50,7 +50,7 @@ inline TagCheckResult tag_check_mode(const std::string& tag)
return TagCheckNotCompatible; return TagCheckNotCompatible;
} }
inline TagCheckResult tag_check_tech(const std::string& tag) TagCheckResult tag_check_tech(const std::string& tag)
{ {
std::vector<std::string> allowed_tags = { "FFF", "MMU", "SLA" }; std::vector<std::string> allowed_tags = { "FFF", "MMU", "SLA" };
if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) { if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) {
@ -68,7 +68,7 @@ inline TagCheckResult tag_check_tech(const std::string& tag)
return TagCheckNotCompatible; return TagCheckNotCompatible;
} }
inline TagCheckResult tag_check_system(const std::string& tag) TagCheckResult tag_check_system(const std::string& tag)
{ {
std::vector<std::string> allowed_tags = { "Windows", "Linux", "OSX" }; std::vector<std::string> allowed_tags = { "Windows", "Linux", "OSX" };
if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) { if (std::find(allowed_tags.begin(), allowed_tags.end(), tag) != allowed_tags.end()) {
@ -97,7 +97,7 @@ inline TagCheckResult tag_check_system(const std::string& tag)
} }
// return true if NOT in disabled mode. // return true if NOT in disabled mode.
inline bool tags_check(const std::string& disabled_tags, const std::string& enabled_tags) bool tags_check(const std::string& disabled_tags, const std::string& enabled_tags)
{ {
if (disabled_tags.empty() && enabled_tags.empty()) if (disabled_tags.empty() && enabled_tags.empty())
return true; return true;
@ -173,7 +173,7 @@ inline bool tags_check(const std::string& disabled_tags, const std::string& enab
} }
return true; return true;
} }
inline void launch_browser_if_allowed(const std::string& url) void launch_browser_if_allowed(const std::string& url)
{ {
if (wxGetApp().app_config->get("suppress_hyperlinks") != "1") if (wxGetApp().app_config->get("suppress_hyperlinks") != "1")
wxLaunchDefaultBrowser(url); wxLaunchDefaultBrowser(url);