Merge Master

This commit is contained in:
AgCaliva
2023-08-30 16:24:16 -03:00
2458 changed files with 219581 additions and 231989 deletions

View File

@@ -184,19 +184,19 @@ void PropertyPythonObject::loadPickle(const std::string& str)
std::string PropertyPythonObject::encodeValue(const std::string& str) const
{
std::string tmp;
for (std::string::const_iterator it = str.begin(); it != str.end(); ++it) {
if (*it == '<')
for (char it : str) {
if (it == '<')
tmp += "&lt;";
else if (*it == '"')
else if (it == '"')
tmp += "&quot;";
else if (*it == '&')
else if (it == '&')
tmp += "&amp;";
else if (*it == '>')
else if (it == '>')
tmp += "&gt";
else if (*it == '\n')
else if (it == '\n')
tmp += "\\n";
else
tmp += *it;
tmp += it;
}
return tmp;
@@ -502,8 +502,8 @@ void PropertyPythonObject::Restore(Base::DocumentReader &reader,XERCES_CPP_NAMES
void PropertyPythonObject::SaveDocFile (Base::Writer &writer) const
{
std::string buffer = this->toString();
for (std::string::iterator it = buffer.begin(); it != buffer.end(); ++it)
writer.Stream().put(*it);
for (char it : buffer)
writer.Stream().put(it);
}
void PropertyPythonObject::RestoreDocFile(Base::Reader &reader)