move encodeAttribute from Property to Persitence to avoid code duplication

This commit is contained in:
wmayer
2017-11-26 18:38:45 +01:00
parent fcb5b9cde1
commit 2059d47e2c
7 changed files with 30 additions and 57 deletions

View File

@@ -175,7 +175,7 @@ unsigned int Constraint::getMemSize (void) const
void Constraint::Save (Writer &writer) const
{
std::string encodeName = App::Property::encodeAttribute(Name);
std::string encodeName = encodeAttribute(Name);
writer.Stream() << writer.ind() << "<Constrain "
<< "Name=\"" << encodeName << "\" "
<< "Type=\"" << (int)Type << "\" ";