Kaydet (Commit) 7725dddf authored tarafından Herbert Dürr's avatar Herbert Dürr Kaydeden (comit) Caolán McNamara

fix signatures for copy-ctor 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.

(cherry picked from commit 0fabc9a7)

Conflicts:
	cppuhelper/inc/cppuhelper/propertysetmixin.hxx

Change-Id: I7332d6eedaaf208f64cfe421983171ba436a4050
üst 6b6f51dc
...@@ -156,8 +156,8 @@ protected: ...@@ -156,8 +156,8 @@ protected:
void notify() const; void notify() const;
private: private:
BoundListeners(BoundListeners &); // not defined BoundListeners( const BoundListeners&); // not defined
void operator =(BoundListeners); // not defined void operator=( const BoundListeners&); // not defined
class Impl; class Impl;
Impl * m_impl; Impl * m_impl;
...@@ -378,8 +378,8 @@ protected: ...@@ -378,8 +378,8 @@ protected:
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException);
private: private:
PropertySetMixinImpl(PropertySetMixinImpl &); // not defined PropertySetMixinImpl( const PropertySetMixinImpl&); // not defined
void operator =(PropertySetMixinImpl &); // not defined void operator=( const PropertySetMixinImpl&); // not defined
PropertySetMixinImpl( PropertySetMixinImpl(
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
...@@ -474,8 +474,8 @@ protected: ...@@ -474,8 +474,8 @@ protected:
~PropertySetMixin() {} ~PropertySetMixin() {}
private: private:
PropertySetMixin(PropertySetMixin &); // not defined PropertySetMixin( const PropertySetMixin&); // not defined
void operator =(PropertySetMixin &); // not defined void operator=( const PropertySetMixin&); // not defined
}; };
#if defined _MSC_VER #if defined _MSC_VER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment