Caolan McNamara wrote:
> 963c6b655032b4e5d0f26555f3c26a129a9efb03 in slideshow. The RGBColor copy
> constructor is wrong, which means that colors in e.g. font color
> transitions are always black to black, i.e. transitions appear to get
> lost.
> 
> I reckon we should stick this into 3.3, what do you think ?
> 
Hi Caolan,

good catch - indeed. But I'd suggest attached patch, both methods
are just fine when auto-generated by the compiler.

Cheers,

-- Thorsten
From 35a6e32b9edfea1a9bb390d8e3046a9267acd05f Mon Sep 17 00:00:00 2001
From: Thorsten Behrens <tbehr...@novell.com>
Date: Sat, 18 Dec 2010 21:41:59 +0100
Subject: [PATCH] Remove extraneous copy ctor and assignment op

---
 slideshow/source/engine/color.cxx |   13 -------------
 slideshow/source/inc/rgbcolor.hxx |    3 ---
 2 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
index 4e65fc5..1da2c12 100644
--- a/slideshow/source/engine/color.cxx
+++ b/slideshow/source/engine/color.cxx
@@ -266,19 +266,6 @@ namespace slideshow
             return RGBColor( aColor.mnRed, aColor.mnGreen, aColor.mnBlue );
         }
          
-        RGBColor::RGBColor(const RGBColor& rLHS)
-        {
-            RGBColor(rLHS.getRed(), rLHS.getGreen(), rLHS.getBlue());		
-        }
-
-        RGBColor& RGBColor::operator=( const RGBColor& rLHS ){
-
-            maRGBTriple.mnRed = rLHS.getRed();
-            maRGBTriple.mnGreen = rLHS.getGreen();
-            maRGBTriple.mnBlue = rLHS.getBlue();
-            return *this;
-        }        
-
         HSLColor operator+( const HSLColor& rLHS, const HSLColor& rRHS )
         {
             return HSLColor( rLHS.getHue() + rRHS.getHue(),
diff --git a/slideshow/source/inc/rgbcolor.hxx b/slideshow/source/inc/rgbcolor.hxx
index fd27859..202fd81 100644
--- a/slideshow/source/inc/rgbcolor.hxx
+++ b/slideshow/source/inc/rgbcolor.hxx
@@ -88,9 +88,6 @@ namespace slideshow
              */
             ::cppcanvas::Color::IntSRGBA getIntegerColor() const;
  
-            RGBColor(const RGBColor& rLHS);
-            RGBColor& operator=( const RGBColor& rLHS); 
-
             struct RGBTriple
             {
                 RGBTriple();
-- 
1.7.1

Attachment: pgpF9CpB4wyd0.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to