From aef1ff8c209a8cbb0d895bc5a9ce1a7d2daf80a8 Mon Sep 17 00:00:00 2001 From: Yan Pujante Date: Wed, 11 Jan 2023 11:36:14 -0800 Subject: [PATCH] fixed compilation on Windows --- src/cpp/re/edit/Widget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/re/edit/Widget.h b/src/cpp/re/edit/Widget.h index 4240d90..c5b6556 100644 --- a/src/cpp/re/edit/Widget.h +++ b/src/cpp/re/edit/Widget.h @@ -41,8 +41,8 @@ class Widget : public Editable public: explicit Widget(WidgetType iType, std::optional const &iName = std::nullopt); - constexpr std::string const &getName() const { return fName.value(); } - constexpr StringWithHash::hash_t getNameHash() const { return fName.hash(); } + inline std::string const &getName() const { return fName.value(); } + inline StringWithHash::hash_t getNameHash() const { return fName.hash(); } void setName(std::string iName); constexpr int getId() const { return fId; } constexpr WidgetType getType() const { return fType; }