From b2ac4def24379db588ffa52ca63676710f18b4fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Mar 2011 00:27:45 +0200 Subject: Fix code style and add small optimisations. --- src/resources/dye.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/dye.cpp') diff --git a/src/resources/dye.cpp b/src/resources/dye.cpp index 7d92e12ce..2d621127b 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -161,7 +161,7 @@ void DyePalette::getColor(int intensity, int color[3]) const void DyePalette::getColor(double intensity, int color[3]) const { // Nothing to do here - if (mColors.size() == 0) + if (mColors.empty()) return; // Force range -- cgit v1.2.3-70-g09d2