From e70b859395edaa161f5873f2b9ea2b49f00951aa Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Tue, 28 Oct 2014 00:34:40 +0100 Subject: [PATCH] Made Property::encodeAttribute static. --- src/App/Property.cpp | 2 +- src/App/Property.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;