diff --git a/src/App/Property.cpp b/src/App/Property.cpp index 6a318aab3111..479877b6533e 100644 --- a/src/App/Property.cpp +++ b/src/App/Property.cpp @@ -114,7 +114,7 @@ void Property::Paste(const Property& /*from*/) assert(0); } -std::string Property::encodeAttribute(const std::string& str) const +std::string Property::encodeAttribute(const std::string& str) { std::string tmp; for (std::string::const_iterator it = str.begin(); it != str.end(); ++it) { diff --git a/src/App/Property.h b/src/App/Property.h index 13f79d8fd954..6efce7c18b8c 100644 --- a/src/App/Property.h +++ b/src/App/Property.h @@ -96,7 +96,7 @@ class AppExport Property : public Base::Persistence /// Paste the value from the property (mainly for Undo/Redo and transactions) virtual void Paste(const Property &from) = 0; /// Encodes an attribute upon saving. - std::string encodeAttribute(const std::string&) const; + static std::string encodeAttribute(const std::string&); friend class PropertyContainer;