From f1505e8b317b920592be537f6888d3b3a97b04d8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 23 May 2012 17:01:54 +1000 Subject: [PATCH] Remove return type from range::expand --- range.cpp | 2 +- range.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/range.cpp b/range.cpp index 7d1cdf9a..29463d5d 100644 --- a/range.cpp +++ b/range.cpp @@ -78,7 +78,7 @@ range::clamp (T val) const template -T +void range::expand (T val) { min = std::min (min, val); max = std::max (max, val); diff --git a/range.hpp b/range.hpp index 5ce67d83..3a809f1f 100644 --- a/range.hpp +++ b/range.hpp @@ -47,8 +47,7 @@ namespace util { T clamp (T val) const; /// Expand the range to include this value if necessary - T expand (T val); - + void expand (T val); /// Normalise a number to [0, 1] within the range. Does not check bounds. double normalise (T val) const;