Lint: fix several issues discovered by clazy

This commit is contained in:
wmayer
2023-08-18 00:49:06 +02:00
committed by Chris Hennes
parent d69551eccb
commit ff1981fcdc
4 changed files with 9 additions and 10 deletions

View File

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