Made Property::encodeAttribute static.

This commit is contained in:
Eivind Kvedalen 2014-10-28 00:34:40 +01:00 committed by wmayer
parent 5a9d79ac94
commit e70b859395
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -96,7 +96,7 @@ public:
/// 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;