openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1479965 - /openoffice/trunk/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx
Date Tue, 07 May 2013 16:15:53 GMT
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



Mime
View raw message