Commit d479a4c9 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Correct Geometry::Object test so that one of its helper functions doesn't...

Correct Geometry::Object test so that one of its helper functions doesn't return a local stack object by value. It now uses shared pointers instead. Also clear a warning. Re #1001
parent 3153de7b
...@@ -123,7 +123,7 @@ class DLLExport Track ...@@ -123,7 +123,7 @@ class DLLExport Track
LType::const_iterator begin() const { return Link.begin(); } ///< Iterator pointing to start of collection LType::const_iterator begin() const { return Link.begin(); } ///< Iterator pointing to start of collection
LType::const_iterator end() const { return Link.end(); } ///< Iterator pointing one-past-the-end of collection LType::const_iterator end() const { return Link.end(); } ///< Iterator pointing one-past-the-end of collection
int count() const { return Link.size(); } ///< The number of link items in the track int count() const { return static_cast<int>(Link.size()); } ///< The number of link items in the track
// tests // tests
int nonComplete() const; int nonComplete() const;
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment