diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-07 12:22:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-07 12:36:00 +0100 |
commit | 62c73b9f60e120aed06ad972e82822cbfa0da50c (patch) | |
tree | 12a3e8b95fbd736d045963c1e7d6a595f9490ec6 /include/linguistic | |
parent | a5bf14ee46209496bfdf92dc0ab309786d64c2de (diff) |
loplugin:deletedspecial
Change-Id: I5b341e6fa5cf66dca9e01b728ef476257b629aeb
Diffstat (limited to 'include/linguistic')
-rw-r--r-- | include/linguistic/hyphdta.hxx | 10 | ||||
-rw-r--r-- | include/linguistic/lngprophelp.hxx | 22 |
2 files changed, 12 insertions, 20 deletions
diff --git a/include/linguistic/hyphdta.hxx b/include/linguistic/hyphdta.hxx index 820a3e3d421c..59094519617b 100644 --- a/include/linguistic/hyphdta.hxx +++ b/include/linguistic/hyphdta.hxx @@ -41,9 +41,8 @@ class HyphenatedWord : sal_Int16 nLanguage; bool bIsAltSpelling; - // disallow copy-constructor and assignment-operator for now - HyphenatedWord(const HyphenatedWord &); - HyphenatedWord & operator = (const HyphenatedWord &); + HyphenatedWord(const HyphenatedWord &) SAL_DELETED_FUNCTION; + HyphenatedWord & operator = (const HyphenatedWord &) SAL_DELETED_FUNCTION; public: HyphenatedWord(const OUString &rWord, sal_Int16 nLang, sal_Int16 nHyphenationPos, @@ -93,9 +92,8 @@ class PossibleHyphens : ::com::sun::star::uno::Sequence< sal_Int16 > aOrigHyphenPos; sal_Int16 nLanguage; - // disallow copy-constructor and assignment-operator for now - PossibleHyphens(const PossibleHyphens &); - PossibleHyphens & operator = (const PossibleHyphens &); + PossibleHyphens(const PossibleHyphens &) SAL_DELETED_FUNCTION; + PossibleHyphens & operator = (const PossibleHyphens &) SAL_DELETED_FUNCTION; public: PossibleHyphens(const OUString &rWord, sal_Int16 nLang, diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index 0f5f1c93f24b..3d8763289d7d 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -75,10 +75,8 @@ class PropertyChgHelper : bool bResIsIgnoreControlCharacters; bool bResIsUseDictionaryList; - - // disallow use of copy-constructor and assignment-operator - PropertyChgHelper( const PropertyChgHelper & ); - PropertyChgHelper & operator = ( const PropertyChgHelper & ); + PropertyChgHelper( const PropertyChgHelper & ) SAL_DELETED_FUNCTION; + PropertyChgHelper & operator = ( const PropertyChgHelper & ) SAL_DELETED_FUNCTION; protected: virtual void SetDefaultValues(); @@ -151,9 +149,8 @@ public: class PropertyHelper_Thes : public PropertyChgHelper { - // disallow use of copy-constructor and assignment-operator - PropertyHelper_Thes( const PropertyHelper_Thes & ); - PropertyHelper_Thes & operator = ( const PropertyHelper_Thes & ); + PropertyHelper_Thes( const PropertyHelper_Thes & ) SAL_DELETED_FUNCTION; + PropertyHelper_Thes & operator = ( const PropertyHelper_Thes & ) SAL_DELETED_FUNCTION; public: PropertyHelper_Thes( @@ -205,10 +202,8 @@ class LNG_DLLPUBLIC PropertyHelper_Spell : bool bResIsSpellWithDigits; bool bResIsSpellCapitalization; - - // disallow use of copy-constructor and assignment-operator - PropertyHelper_Spell( const PropertyHelper_Spell & ); - PropertyHelper_Spell & operator = ( const PropertyHelper_Spell & ); + PropertyHelper_Spell( const PropertyHelper_Spell & ) SAL_DELETED_FUNCTION; + PropertyHelper_Spell & operator = ( const PropertyHelper_Spell & ) SAL_DELETED_FUNCTION; protected: // PropertyChgHelper @@ -288,9 +283,8 @@ class PropertyHelper_Hyphen : nResHyphMinTrailing, nResHyphMinWordLength; - // disallow use of copy-constructor and assignment-operator - PropertyHelper_Hyphen( const PropertyHelper_Hyphen & ); - PropertyHelper_Hyphen & operator = ( const PropertyHelper_Hyphen & ); + PropertyHelper_Hyphen( const PropertyHelper_Hyphen & ) SAL_DELETED_FUNCTION; + PropertyHelper_Hyphen & operator = ( const PropertyHelper_Hyphen & ) SAL_DELETED_FUNCTION; protected: // PropertyChgHelper |