mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Make CyclicInteractionError::GetCycle() const
This commit is contained in:
@@ -51,7 +51,7 @@ public:
|
||||
* has an edge going to the first Vertex.
|
||||
* @return A vector of Vertex elements representing the cyclic path.
|
||||
*/
|
||||
LOOT_API std::vector<Vertex> GetCycle();
|
||||
LOOT_API std::vector<Vertex> GetCycle() const;
|
||||
|
||||
private:
|
||||
std::vector<Vertex> cycle_;
|
||||
|
||||
@@ -48,5 +48,5 @@ CyclicInteractionError::CyclicInteractionError(std::vector<Vertex> cycle) :
|
||||
std::runtime_error("Cyclic interaction detected: " + describeCycle(cycle)),
|
||||
cycle_(cycle) {}
|
||||
|
||||
std::vector<Vertex> CyclicInteractionError::GetCycle() { return cycle_; }
|
||||
std::vector<Vertex> CyclicInteractionError::GetCycle() const { return cycle_; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user