summaryrefslogtreecommitdiffstats
path: root/Project/GraphAutoLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/GraphAutoLayout.cpp')
-rw-r--r--Project/GraphAutoLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/GraphAutoLayout.cpp b/Project/GraphAutoLayout.cpp
index 972ce25..bf3bc91 100644
--- a/Project/GraphAutoLayout.cpp
+++ b/Project/GraphAutoLayout.cpp
@@ -34,7 +34,7 @@ void GraphAutoLayout::AddLink(size_t index1, size_t index2, float weight)
m_nodes.push_back(node);
}
// Add an edge
- m_edges.push_back((GraphLayoutEdge){.node1 = m_nodes[index1], .node2 = m_nodes[index2], .weight = weight});
+ m_edges.push_back({.node1 = m_nodes[index1], .node2 = m_nodes[index2], .weight = weight});
}
void GraphAutoLayout::Compute(size_t iterations)