summaryrefslogtreecommitdiff
path: root/flowgraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flowgraph.cpp')
-rw-r--r--flowgraph.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/flowgraph.cpp b/flowgraph.cpp
index f4164110..204e3d19 100644
--- a/flowgraph.cpp
+++ b/flowgraph.cpp
@@ -24,8 +24,8 @@ using namespace BinaryNinja;
using namespace std;
-FlowGraphLayoutRequest::FlowGraphLayoutRequest(FlowGraph* graph, const std::function<void()>& completeFunc):
- m_completeFunc(completeFunc)
+FlowGraphLayoutRequest::FlowGraphLayoutRequest(FlowGraph* graph, const std::function<void()>& completeFunc) :
+ m_completeFunc(completeFunc)
{
m_object = BNStartFlowGraphLayout(graph->GetObject(), this, CompleteCallback);
}
@@ -65,7 +65,8 @@ void FlowGraphLayoutRequest::Abort()
// Must clear the callback with the core before clearing our own function object, as until it
// is cleared in the core it can be called at any time from a different thread.
BNAbortFlowGraphLayoutRequest(m_object);
- m_completeFunc = []() {};
+ m_completeFunc = []() {
+ };
}
@@ -141,14 +142,10 @@ void FlowGraph::PrepareForLayout()
}
-void FlowGraph::PopulateNodes()
-{
-}
+void FlowGraph::PopulateNodes() {}
-void FlowGraph::CompleteLayout()
-{
-}
+void FlowGraph::CompleteLayout() {}
Ref<Function> FlowGraph::GetFunction() const
@@ -410,7 +407,7 @@ bool FlowGraph::IsOptionSet(BNFlowGraphOption option)
}
-CoreFlowGraph::CoreFlowGraph(BNFlowGraph* graph): FlowGraph(graph)
+CoreFlowGraph::CoreFlowGraph(BNFlowGraph* graph) : FlowGraph(graph)
{
m_queryMode = BNFlowGraphUpdateQueryMode(GetObject());
}