[Libreoffice-commits] .: Branch 'integration/dev300_m101' - sd/source

Bjoern Michaelsen bmichaelsen at kemper.freedesktop.org
Mon Mar 14 10:07:09 PDT 2011


 sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c4ffa8e23e4192a2494aae24ad79a53865b138a2
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Mon Mar 14 18:05:43 2011 +0100

    operator= should accept const args too to make stl implementations happy

diff --git a/sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx b/sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx
index 58bb439..a29b534 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx
@@ -52,7 +52,7 @@ public:
             : maBitmap(rBitmap), mbIsExcluded(bIsExcluded) {}
         Representative (const Representative& rOther)
             : maBitmap(rOther.maBitmap), mbIsExcluded(rOther.mbIsExcluded) {}
-        Representative operator= (Representative& rOther)
+        Representative operator= (Representative const& rOther)
         {   if (&rOther != this) {maBitmap = rOther.maBitmap; mbIsExcluded = rOther.mbIsExcluded; }
             return *this;
         }


More information about the Libreoffice-commits mailing list