From cd88d3888c3025424332b674940c07ac2978a1ea Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 18 Feb 2023 14:44:17 +0100 Subject: [PATCH] [App] License.h: fix compiler warning - as discussed here: https://forum.freecad.org/viewtopic.php?t=76184 --- src/App/License.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/App/License.h b/src/App/License.h index 06e1be3fe8..68f47189d8 100644 --- a/src/App/License.h +++ b/src/App/License.h @@ -34,7 +34,7 @@ namespace App { * \brief The License class * Handling of standard licenses. */ -class AppExport License +class License { public: enum class Type { @@ -53,19 +53,20 @@ public: Other }; - explicit License(Type); - explicit License(long); - explicit License(int); - Type getType() const; - std::string getLicense() const; - std::string getUrl() const; + AppExport explicit License(Type); + AppExport explicit License(long); + AppExport explicit License(int); + AppExport Type getType() const; + AppExport std::string getLicense() const; + AppExport std::string getUrl() const; - static std::vector getLicenses(); + AppExport static std::vector getLicenses(); private: static void init(); - struct LicenseItem{ + struct LicenseItem + { std::string license; std::string url; };