diff options
Diffstat (limited to 'src/graphics/core/color.h')
-rw-r--r-- | src/graphics/core/color.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graphics/core/color.h b/src/graphics/core/color.h index 5d059e5..87a50f4 100644 --- a/src/graphics/core/color.h +++ b/src/graphics/core/color.h @@ -139,10 +139,10 @@ struct ColorHSV //! Returns a string "(h, s, v)" inline std::string ToString() const { - std::stringstream s; - s.precision(3); - s << "(" << h << ", " << s << ", " << v << ")"; - return s.str(); + std::stringstream str; + str.precision(3); + str << "(" << h << ", " << s << ", " << v << ")"; + return str.str(); } }; @@ -154,3 +154,4 @@ Color HSV2RGB(ColorHSV color); } // namespace Gfx + |