From 483684f702cbc4fed815ac27088c368ca2f51695 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Thu, 12 Aug 2021 12:24:58 +0200 Subject: [PATCH] Delete inline in some functions --- src/slic3r/GUI/HintNotification.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/HintNotification.cpp b/src/slic3r/GUI/HintNotification.cpp index 0e4d1a5a3..dd215052d 100644 --- a/src/slic3r/GUI/HintNotification.cpp +++ b/src/slic3r/GUI/HintNotification.cpp @@ -37,7 +37,7 @@ enum TagCheckResult TagCheckNotCompatible }; // 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 allowed_tags = {"simple", "advanced", "expert"}; 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; } -inline TagCheckResult tag_check_tech(const std::string& tag) +TagCheckResult tag_check_tech(const std::string& tag) { std::vector allowed_tags = { "FFF", "MMU", "SLA" }; 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; } -inline TagCheckResult tag_check_system(const std::string& tag) +TagCheckResult tag_check_system(const std::string& tag) { std::vector allowed_tags = { "Windows", "Linux", "OSX" }; 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. -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()) return true; @@ -173,7 +173,7 @@ inline bool tags_check(const std::string& disabled_tags, const std::string& enab } 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") wxLaunchDefaultBrowser(url);