Lint: fix several issues discovered by clazy
This commit is contained in:
@@ -399,11 +399,11 @@ void Document::exportGraphviz(std::ostream& out) const
|
||||
}
|
||||
|
||||
// Internal document objects
|
||||
for (auto It : d->objectMap)
|
||||
for (const auto & It : d->objectMap)
|
||||
addExpressionSubgraphIfNeeded(It.second, CSSubgraphs);
|
||||
|
||||
// Add external document objects
|
||||
for (auto it : d->objectMap) {
|
||||
for (const auto & it : d->objectMap) {
|
||||
std::vector<DocumentObject*> OutList = it.second->getOutList();
|
||||
for (auto obj : OutList) {
|
||||
if (obj) {
|
||||
@@ -424,11 +424,11 @@ void Document::exportGraphviz(std::ostream& out) const
|
||||
bool CSSubgraphs = depGrp->GetBool("GeoFeatureSubgraphs", true);
|
||||
|
||||
// Add internal document objects
|
||||
for (auto It : d->objectMap)
|
||||
for (const auto & It : d->objectMap)
|
||||
add(It.second, It.second->getNameInDocument(), It.second->Label.getValue(), CSSubgraphs);
|
||||
|
||||
// Add external document objects
|
||||
for (auto It : d->objectMap) {
|
||||
for (const auto & It : d->objectMap) {
|
||||
std::vector<DocumentObject*> OutList = It.second->getOutList();
|
||||
for (auto obj : OutList) {
|
||||
if (obj) {
|
||||
@@ -484,7 +484,7 @@ void Document::exportGraphviz(std::ostream& out) const
|
||||
bool omitGeoFeatureGroups = depGrp->GetBool("GeoFeatureSubgraphs", true);
|
||||
|
||||
// Add edges between document objects
|
||||
for (auto It : d->objectMap) {
|
||||
for (const auto & It : d->objectMap) {
|
||||
|
||||
if(omitGeoFeatureGroups) {
|
||||
//coordinate systems are represented by subgraphs
|
||||
|
||||
Reference in New Issue
Block a user