diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-12 14:06:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-17 10:55:17 +0200 |
commit | 3e82897353e576dc6e3fbf55371fda5a0c3415df (patch) | |
tree | 71c2f03128885000efae1852dccb504f8355c79e /slideshow | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/color.cxx | 24 | ||||
-rw-r--r-- | slideshow/source/inc/hslcolor.hxx | 6 | ||||
-rw-r--r-- | slideshow/source/inc/rgbcolor.hxx | 6 |
3 files changed, 6 insertions, 30 deletions
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx index 81483adf3abc..9bb40d6fd4ba 100644 --- a/slideshow/source/engine/color.cxx +++ b/slideshow/source/engine/color.cxx @@ -193,20 +193,8 @@ namespace slideshow { } - double HSLColor::getHue() const - { - return maHSLTriple.mnHue; - } - double HSLColor::getSaturation() const - { - return maHSLTriple.mnSaturation; - } - double HSLColor::getLuminance() const - { - return maHSLTriple.mnLuminance; - } bool operator==( const HSLColor& rLHS, const HSLColor& rRHS ) @@ -327,20 +315,8 @@ namespace slideshow { } - double RGBColor::getRed() const - { - return maRGBTriple.mnRed; - } - double RGBColor::getGreen() const - { - return maRGBTriple.mnGreen; - } - double RGBColor::getBlue() const - { - return maRGBTriple.mnBlue; - } ::cppcanvas::Color::IntSRGBA RGBColor::getIntegerColor() const { diff --git a/slideshow/source/inc/hslcolor.hxx b/slideshow/source/inc/hslcolor.hxx index 67fc5c24e7ff..5529a1b83f24 100644 --- a/slideshow/source/inc/hslcolor.hxx +++ b/slideshow/source/inc/hslcolor.hxx @@ -44,19 +44,19 @@ namespace slideshow @return hue, is in the range [0,360] */ - double getHue() const; + double getHue() const { return maHSLTriple.mnHue; } /** Saturation of the color. @return saturation, is in the range [0,1] */ - double getSaturation() const; + double getSaturation() const { return maHSLTriple.mnSaturation; } /** Luminance of the color. @return luminance, is in the range [0,1] */ - double getLuminance() const; + double getLuminance() const { return maHSLTriple.mnLuminance; } struct HSLTriple { diff --git a/slideshow/source/inc/rgbcolor.hxx b/slideshow/source/inc/rgbcolor.hxx index 1868f0ac4785..6028c1e889e9 100644 --- a/slideshow/source/inc/rgbcolor.hxx +++ b/slideshow/source/inc/rgbcolor.hxx @@ -43,15 +43,15 @@ namespace slideshow /** Get the RGB red value. */ - double getRed() const; + double getRed() const { return maRGBTriple.mnRed; } /** Get the RGB green value. */ - double getGreen() const; + double getGreen() const { return maRGBTriple.mnGreen; } /** Get the RGB blue value. */ - double getBlue() const; + double getBlue() const { return maRGBTriple.mnBlue; } /** Create an integer sRGBA color. */ |