You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/05/07 18:15:53 UTC

svn commit: r1479965 - /openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx

Author: hdu
Date: Tue May  7 16:15:53 2013
New Revision: 1479965

URL: http://svn.apache.org/r1479965
Log:
fix signatures for copy-construction and assignment for the propertysetmixin classes

the canonic way to disallow copy construction and assignment of an object
is to declare unimplemented methods for them taking const references.

Modified:
    openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx

Modified: openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx?rev=1479965&r1=1479964&r2=1479965&view=diff
==============================================================================
--- openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx (original)
+++ openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx Tue May  7 16:15:53 2013
@@ -157,8 +157,8 @@ protected:
         void notify() const;
 
     private:
-        BoundListeners(BoundListeners &); // not defined
-        void operator =(BoundListeners); // not defined
+        BoundListeners( const BoundListeners&); // not defined
+        void operator=( const BoundListeners&); // not defined
 
         class Impl;
         Impl * m_impl;
@@ -379,8 +379,8 @@ protected:
             com::sun::star::uno::RuntimeException);
 
 private:
-    PropertySetMixinImpl(PropertySetMixinImpl &); // not defined
-    void operator =(PropertySetMixinImpl &); // not defined
+    PropertySetMixinImpl( const PropertySetMixinImpl&); // not defined
+    void operator=( const PropertySetMixinImpl&); // not defined
 
     PropertySetMixinImpl(
         com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -471,8 +471,8 @@ protected:
     ~PropertySetMixin() {}
 
 private:
-    PropertySetMixin(PropertySetMixin &); // not defined
-    void operator =(PropertySetMixin); // not defined
+    PropertySetMixin( const PropertySetMixin&); // not defined
+    void operator=( const PropertySetMixin&); // not defined
 };
 
 #if defined _MSC_VER