Commit 94ba06ab authored by Damien L-G's avatar Damien L-G

Make the pointer return by Map::get_spline() a pointer to a const-qualified Spline

parent 90294ef2
......@@ -77,7 +77,7 @@ void check_valid_number_of_options(std::vector<std::string> const &options,
}
template <typename Spline>
Spline *Map<Spline>::get_spline(std::string const &which) {
Spline const *Map<Spline>::get_spline(std::string const &which) {
auto it = _splines.find(which);
if (it == _splines.end()) {
auto const options = parse_options(which);
......
......@@ -10,7 +10,7 @@ namespace noname {
template <typename Spline> class Map {
public:
static Spline *get_spline(std::string const &which);
static Spline const *get_spline(std::string const &which);
static int size() { return _splines.size(); }
static void clear() { _splines.clear(); }
......
Markdown is supported
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