Kaydet (Commit) 01ed4bf5 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst c9df840d
...@@ -319,7 +319,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent) ...@@ -319,7 +319,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent)
basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor()); basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor());
double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0); double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0);
double fResult; double fResult = 0;
if (n100thPercent > 0) // tint if (n100thPercent > 0) // tint
{ {
......
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