various fixes:

+ fix typos
+ fix const correctness
+ whitespace improvements
This commit is contained in:
wmayer
2017-06-19 17:18:16 +02:00
parent 39bf43202e
commit 989fe4028e
14 changed files with 33 additions and 34 deletions

View File

@@ -325,8 +325,8 @@ void Document::exportGraphviz(std::ostream& out) const
}
/**
* @brief addExpressionSubgraphIfNeeded Add a subgraph to the main graph if it is needed, i.e there are defined at least one expression in hte
* document object, or other objects are referencing properties in it.
* @brief addExpressionSubgraphIfNeeded Add a subgraph to the main graph if it is needed, i.e. there are defined at least one
* expression in the document object, or other objects are referencing properties in it.
* @param obj DocumentObject to assess.
* @param CSSubgraphs Boolean if the GeoFeatureGroups are created as subgraphs
*/
@@ -370,8 +370,9 @@ void Document::exportGraphviz(std::ostream& out) const
auto graph2 = group ? GraphList[group] : &DepList;
GraphList[o] = &graph2->create_subgraph();
}
else
else {
GraphList[o] = &graph->create_subgraph();
}
setGraphAttributes(o);
}
@@ -394,7 +395,7 @@ void Document::exportGraphviz(std::ostream& out) const
if(std::find(objects.begin(), objects.end(), docObj) != objects.end())
return;
//find the correct graph to add the vertex too. Check first expressions graphs, afterwards
//find the correct graph to add the vertex to. Check first expression graphs, afterwards
//the parent CS and origin graphs
Graph * sgraph = GraphList[docObj];
if(CSSubgraphs) {
@@ -868,12 +869,11 @@ bool Document::redo(void)
return false;
}
bool Document::performsTransactionOperation() {
bool Document::isPerformingTransaction() const
{
return d->undoing || d->rollback;
}
std::vector<std::string> Document::getAvailableUndoNames() const
{
std::vector<std::string> vList;