diff --git a/src/App/Expression.cpp b/src/App/Expression.cpp index 1edc62605b..8149ce708b 100644 --- a/src/App/Expression.cpp +++ b/src/App/Expression.cpp @@ -484,11 +484,11 @@ App::any pyObjectToAny(Py::Object value, bool check) { if (PyLong_Check(pyvalue)) return App::any(PyLong_AsLong(pyvalue)); else if (PyUnicode_Check(pyvalue)) { - const char* value = PyUnicode_AsUTF8(pyvalue); - if (!value) { + const char* utf8value = PyUnicode_AsUTF8(pyvalue); + if (!utf8value) { FC_THROWM(Base::ValueError, "Invalid unicode string"); } - return App::any(std::string(value)); + return App::any(std::string(utf8value)); } else { return App::any(pyObjectWrap(pyvalue)); diff --git a/src/App/ObjectIdentifier.cpp b/src/App/ObjectIdentifier.cpp index 3b47871109..0aebc7f48d 100644 --- a/src/App/ObjectIdentifier.cpp +++ b/src/App/ObjectIdentifier.cpp @@ -1490,14 +1490,14 @@ void ObjectIdentifier::String::checkImport(const App::DocumentObject *owner, else { str.resize(str.size()-1); auto mapped = reader->getName(str.c_str()); - auto obj = owner->getDocument()->getObject(mapped); - if (!obj) { + auto objForMapped = owner->getDocument()->getObject(mapped); + if (!objForMapped) { FC_ERR("Cannot find object " << str); } else { isString = true; forceIdentifier = false; - str = obj->Label.getValue(); + str = objForMapped->Label.getValue(); } } } diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index 44b79a607c..e78abd3c22 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -2729,9 +2729,9 @@ public: // potentially unchanged. So we just touch at most one. std::set docs; for(auto link : links) { - auto doc = static_cast(link->getContainer())->getDocument(); - auto ret = docs.insert(doc); - if(ret.second && !doc->isTouched()) + auto linkdoc = static_cast(link->getContainer())->getDocument(); + auto ret = docs.insert(linkdoc); + if(ret.second && !linkdoc->isTouched()) link->touch(); } }