summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-08-27 08:40:20 +0300
committerTor Lillqvist <tml@collabora.com>2015-08-27 08:40:20 +0300
commit01ed4bf52db701c4e7824f4a92b5a3afa2a5ca4b (patch)
tree5c4867de4180707c07384005fbd3c3596f596448 /tools
parentc9df840d207c8d965b2df993e0a90be89f52c254 (diff)
Avoid slightly silly warnings from Clang
Clang (at least the one from newest Xcode 7 Beta) warn both that fResult "is used uninitialized whenever 'if' condition is false" *and* that the very same "condition is always true". Change-Id: I9e2424e7323046edbfe1af3c9f960df49e0809dd
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/color.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 4ab32d471ea1..3fb3294ecd89 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -319,7 +319,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent)
basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor());
double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0);
- double fResult;
+ double fResult = 0;
if (n100thPercent > 0) // tint
{