diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-04 14:20:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-05 07:32:46 +0100 |
commit | 9a06b99d2f53bd8d0a9ab0936efed9924a2abb88 (patch) | |
tree | 544f3e51a3978bd234a1c9fcdbf12d9b84352da4 /i18npool/inc | |
parent | eaf89e477af94bd3977aca17d72dd442c7604e63 (diff) |
loplugin:salcall fix non-virtual methods
first, since those are safer to change than virtual methods
Change-Id: Ie3b624019d75ee2b793cee33b3c5f64e994e8bfe
Reviewed-on: https://gerrit.libreoffice.org/45798
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/breakiteratorImpl.hxx | 4 | ||||
-rw-r--r-- | i18npool/inc/breakiterator_unicode.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/calendar_gregorian.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/characterclassificationImpl.hxx | 6 | ||||
-rw-r--r-- | i18npool/inc/collatorImpl.hxx | 6 | ||||
-rw-r--r-- | i18npool/inc/defaultnumberingprovider.hxx | 4 | ||||
-rw-r--r-- | i18npool/inc/indexentrysupplier.hxx | 4 | ||||
-rw-r--r-- | i18npool/inc/indexentrysupplier_common.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/inputsequencechecker.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/localedata.hxx | 32 | ||||
-rw-r--r-- | i18npool/inc/nativenumbersupplier.hxx | 4 | ||||
-rw-r--r-- | i18npool/inc/textToPronounce_zh.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/textconversion.hxx | 8 | ||||
-rw-r--r-- | i18npool/inc/textconversionImpl.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/transliterationImpl.hxx | 4 | ||||
-rw-r--r-- | i18npool/inc/transliteration_Numeric.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/transliteration_body.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/transliteration_caseignore.hxx | 2 |
18 files changed, 45 insertions, 45 deletions
diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx index a357db248712..0b71496e44eb 100644 --- a/i18npool/inc/breakiteratorImpl.hxx +++ b/i18npool/inc/breakiteratorImpl.hxx @@ -122,9 +122,9 @@ private: css::uno::Reference < css::uno::XComponentContext > m_xContext; /// @throws css::uno::RuntimeException - bool SAL_CALL createLocaleSpecificBreakIterator( const OUString& aLocaleName ); + bool createLocaleSpecificBreakIterator( const OUString& aLocaleName ); /// @throws css::uno::RuntimeException - css::uno::Reference < XBreakIterator > SAL_CALL getLocaleSpecificBreakIterator( const css::lang::Locale& rLocale ); + css::uno::Reference < XBreakIterator > getLocaleSpecificBreakIterator( const css::lang::Locale& rLocale ); }; diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx index 171b1bbfc6de..f34412d0eac4 100644 --- a/i18npool/inc/breakiterator_unicode.hxx +++ b/i18npool/inc/breakiterator_unicode.hxx @@ -97,7 +97,7 @@ protected: BI_Data words[4]; // 4 is css::i18n::WordType enumeration size /// @throws css::uno::RuntimeException - void SAL_CALL loadICUBreakIterator(const css::lang::Locale& rLocale, + void loadICUBreakIterator(const css::lang::Locale& rLocale, sal_Int16 rBreakType, sal_Int16 rWordType, const sal_Char* name, const OUString& rText); public: diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx index 15a591f37429..34befe25e21e 100644 --- a/i18npool/inc/calendar_gregorian.hxx +++ b/i18npool/inc/calendar_gregorian.hxx @@ -51,7 +51,7 @@ public: // Constructors Calendar_gregorian(); Calendar_gregorian(const Era *_eraArray); - void SAL_CALL init(const Era *_eraArray); + void init(const Era *_eraArray); /** * Destructor diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx index 290418152622..36d37c69e4fc 100644 --- a/i18npool/inc/characterclassificationImpl.hxx +++ b/i18npool/inc/characterclassificationImpl.hxx @@ -74,7 +74,7 @@ private: css::lang::Locale aLocale; OUString aName; css::uno::Reference < XCharacterClassification > xCI; - bool SAL_CALL equals(const css::lang::Locale& rLocale) { + bool equals(const css::lang::Locale& rLocale) { return aLocale.Language == rLocale.Language && aLocale.Country == rLocale.Country && aLocale.Variant == rLocale.Variant; @@ -87,8 +87,8 @@ private: css::uno::Reference < XCharacterClassification > xUCI; /// @throws css::uno::RuntimeException - css::uno::Reference < XCharacterClassification > const & SAL_CALL getLocaleSpecificCharacterClassification(const css::lang::Locale& rLocale); - bool SAL_CALL createLocaleSpecificCharacterClassification(const OUString& serviceName, const css::lang::Locale& rLocale); + css::uno::Reference < XCharacterClassification > const & getLocaleSpecificCharacterClassification(const css::lang::Locale& rLocale); + bool createLocaleSpecificCharacterClassification(const OUString& serviceName, const css::lang::Locale& rLocale); }; diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx index 47641a25f3a5..534690897731 100644 --- a/i18npool/inc/collatorImpl.hxx +++ b/i18npool/inc/collatorImpl.hxx @@ -81,7 +81,7 @@ private: css::uno::Reference < XCollator > xC; lookupTableItem(const css::lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service, css::uno::Reference < XCollator > const & _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {} - bool SAL_CALL equals(const css::lang::Locale& rLocale, const OUString& _algorithm) { + bool equals(const css::lang::Locale& rLocale, const OUString& _algorithm) { return aLocale.Language == rLocale.Language && aLocale.Country == rLocale.Country && aLocale.Variant == rLocale.Variant && @@ -97,10 +97,10 @@ private: css::uno::Reference < css::i18n::XLocaleData5 > mxLocaleData; /// @throws css::uno::RuntimeException - bool SAL_CALL createCollator(const css::lang::Locale& rLocale, const OUString& serviceName, + bool createCollator(const css::lang::Locale& rLocale, const OUString& serviceName, const OUString& rSortAlgorithm); /// @throws css::uno::RuntimeException - void SAL_CALL loadCachedCollator(const css::lang::Locale& rLocale, const OUString& rSortAlgorithm); + void loadCachedCollator(const css::lang::Locale& rLocale, const OUString& rSortAlgorithm); }; } diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx index 33d71d95d8a6..1320b7e41a73 100644 --- a/i18npool/inc/defaultnumberingprovider.hxx +++ b/i18npool/inc/defaultnumberingprovider.hxx @@ -77,9 +77,9 @@ private: css::uno::Reference < css::container::XHierarchicalNameAccess > xHierarchicalNameAccess; rtl::Reference<TransliterationImpl> translit; /// @throws css::uno::RuntimeException - OUString SAL_CALL makeNumberingIdentifier( sal_Int16 index ); + OUString makeNumberingIdentifier( sal_Int16 index ); /// @throws css::uno::RuntimeException - bool SAL_CALL isScriptFlagEnabled(const OUString& aName ); + bool isScriptFlagEnabled(const OUString& aName ); }; } diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx index 2194e4fd1c2a..088ca721630c 100644 --- a/i18npool/inc/indexentrysupplier.hxx +++ b/i18npool/inc/indexentrysupplier.hxx @@ -77,9 +77,9 @@ private: css::uno::Reference < css::i18n::XExtendedIndexEntrySupplier > xIES; css::uno::Reference < css::uno::XComponentContext > m_xContext; /// @throws css::uno::RuntimeException - bool SAL_CALL createLocaleSpecificIndexEntrySupplier(const OUString& name); + bool createLocaleSpecificIndexEntrySupplier(const OUString& name); /// @throws css::uno::RuntimeException - css::uno::Reference < css::i18n::XExtendedIndexEntrySupplier > const & SAL_CALL getLocaleSpecificIndexEntrySupplier( + css::uno::Reference < css::i18n::XExtendedIndexEntrySupplier > const & getLocaleSpecificIndexEntrySupplier( const css::lang::Locale& rLocale, const OUString& rSortAlgorithm); css::lang::Locale aLocale; diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx index e272f43e3252..9eb2044506c4 100644 --- a/i18npool/inc/indexentrysupplier_common.hxx +++ b/i18npool/inc/indexentrysupplier_common.hxx @@ -87,7 +87,7 @@ protected: OUString aAlgorithm; /// @throws css::uno::RuntimeException - const OUString& SAL_CALL getEntry( const OUString& IndexEntry, + const OUString& getEntry( const OUString& IndexEntry, const OUString& PhoneticEntry, const css::lang::Locale& rLocale ); }; diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx index 094113a8ca74..e31ea6240d64 100644 --- a/i18npool/inc/inputsequencechecker.hxx +++ b/i18npool/inc/inputsequencechecker.hxx @@ -69,7 +69,7 @@ private: css::uno::Reference < css::uno::XComponentContext > m_xContext; /// @throws css::uno::RuntimeException - css::uno::Reference< css::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char const * rLanguage); + css::uno::Reference< css::i18n::XExtendedInputSequenceChecker >& getInputSequenceChecker(sal_Char const * rLanguage); static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar); }; diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx index 4a83d44375b2..8014b682cf99 100644 --- a/i18npool/inc/localedata.hxx +++ b/i18npool/inc/localedata.hxx @@ -90,20 +90,20 @@ public: virtual css::uno::Sequence< css::i18n::FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) override; virtual css::uno::Sequence< css::i18n::Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) override; /// @throws css::uno::RuntimeException - OUString SAL_CALL getCollatorRuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); + OUString getCollatorRuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); virtual css::uno::Sequence< OUString > SAL_CALL getTransliterations( const css::lang::Locale& rLocale ) override; virtual css::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) override; virtual css::uno::Sequence< OUString > SAL_CALL getReservedWord( const css::lang::Locale& rLocale ) override ; /// @throws css::uno::RuntimeException - css::uno::Sequence< OUString > SAL_CALL getBreakIteratorRules( const css::lang::Locale& rLocale ) ; + css::uno::Sequence< OUString > getBreakIteratorRules( const css::lang::Locale& rLocale ) ; virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getAllInstalledLocaleNames() override; virtual css::uno::Sequence< OUString > SAL_CALL getSearchOptions( const css::lang::Locale& rLocale ) override; virtual css::uno::Sequence< OUString > SAL_CALL getCollationOptions( const css::lang::Locale& rLocale ) override; /// @throws css::uno::RuntimeException - css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > getContinuousNumberingLevels( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > getOutlineNumberingLevels( const css::lang::Locale& rLocale ); // XLocaleData4 virtual css::uno::Sequence< OUString > SAL_CALL getDateAcceptancePatterns( const css::lang::Locale& rLocale ) override; @@ -113,23 +113,23 @@ public: // following methods are used by indexentry service /// @throws css::uno::RuntimeException - css::uno::Sequence< OUString > SAL_CALL getIndexAlgorithm( const css::lang::Locale& rLocale ); + css::uno::Sequence< OUString > getIndexAlgorithm( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - OUString SAL_CALL getDefaultIndexAlgorithm( const css::lang::Locale& rLocale ); + OUString getDefaultIndexAlgorithm( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - OUString SAL_CALL getIndexKeysByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); + OUString getIndexKeysByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); /// @throws css::uno::RuntimeException - OUString SAL_CALL getIndexModuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); + OUString getIndexModuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); /// @throws css::uno::RuntimeException - css::uno::Sequence< css::i18n::UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::i18n::UnicodeScript > getUnicodeScripts( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - css::uno::Sequence< OUString > SAL_CALL getFollowPageWords( const css::lang::Locale& rLocale ); + css::uno::Sequence< OUString > getFollowPageWords( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - bool SAL_CALL hasPhonetic( const css::lang::Locale& rLocale ); + bool hasPhonetic( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - bool SAL_CALL isPhonetic( const css::lang::Locale& rLocale, const OUString& algorithm ); + bool isPhonetic( const css::lang::Locale& rLocale, const OUString& algorithm ); /// @throws css::uno::RuntimeException - OUString SAL_CALL getHangingCharacters( const css::lang::Locale& rLocale ); + OUString getHangingCharacters( const css::lang::Locale& rLocale ); //XServiceInfo virtual OUString SAL_CALL getImplementationName() override; @@ -142,9 +142,9 @@ private: OUString ref_name; /// @throws css::uno::RuntimeException - oslGenericFunction SAL_CALL getFunctionSymbol( const css::lang::Locale& rLocale, const sal_Char* pFunction ); - sal_Unicode ** SAL_CALL getIndexArray(const css::lang::Locale& rLocale, sal_Int16& indexCount); - sal_Unicode ** SAL_CALL getIndexArrayForAlgorithm(const css::lang::Locale& rLocale, const OUString& rAlgorithm); + oslGenericFunction getFunctionSymbol( const css::lang::Locale& rLocale, const sal_Char* pFunction ); + sal_Unicode ** getIndexArray(const css::lang::Locale& rLocale, sal_Int16& indexCount); + sal_Unicode ** getIndexArrayForAlgorithm(const css::lang::Locale& rLocale, const OUString& rAlgorithm); /// @throws css::uno::RuntimeException css::uno::Sequence< css::i18n::CalendarItem2 > & getCalendarItemByName(const OUString& name, diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx index 0fe10c4218d1..e248a1812004 100644 --- a/i18npool/inc/nativenumbersupplier.hxx +++ b/i18npool/inc/nativenumbersupplier.hxx @@ -59,11 +59,11 @@ public: // following methods are not for XNativeNumberSupplier, they are for calling from transliterations /// @throws css::uno::RuntimeException - OUString SAL_CALL getNativeNumberString( const OUString& aNumberString, + OUString getNativeNumberString( const OUString& aNumberString, const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode, css::uno::Sequence< sal_Int32 >& offset ); /// @throws css::uno::RuntimeException - sal_Unicode SAL_CALL getNativeNumberChar( const sal_Unicode inChar, + sal_Unicode getNativeNumberChar( const sal_Unicode inChar, const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode ) ; private: diff --git a/i18npool/inc/textToPronounce_zh.hxx b/i18npool/inc/textToPronounce_zh.hxx index 7ed51742292d..d573cc1128ce 100644 --- a/i18npool/inc/textToPronounce_zh.hxx +++ b/i18npool/inc/textToPronounce_zh.hxx @@ -31,7 +31,7 @@ protected: oslModule hModule; #endif sal_uInt16 **idx; - const sal_Unicode* SAL_CALL getPronounce(const sal_Unicode ch); + const sal_Unicode* getPronounce(const sal_Unicode ch); public: #ifndef DISABLE_DYNLOADING diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx index 8b5c9fa9a20e..98e16ca623f2 100644 --- a/i18npool/inc/textconversion.hxx +++ b/i18npool/inc/textconversion.hxx @@ -71,7 +71,7 @@ private: protected: #ifndef DISABLE_DYNLOADING oslModule hModule; - oslGenericFunction SAL_CALL getFunctionBySymbol(const sal_Char* func); + oslGenericFunction getFunctionBySymbol(const sal_Char* func); #endif }; @@ -115,7 +115,7 @@ private: css::uno::Reference < css::linguistic2::XConversionDictionaryList > xCDL; sal_Int32 maxLeftLength; sal_Int32 maxRightLength; - css::uno::Sequence< OUString > SAL_CALL + css::uno::Sequence< OUString > getCharConversions(const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toHanja); }; @@ -153,9 +153,9 @@ public: private: // user defined dictionary list css::uno::Reference < css::linguistic2::XConversionDictionaryList > xCDL; - OUString SAL_CALL getWordConversion(const OUString& aText, + OUString getWordConversion(const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions, css::uno::Sequence <sal_Int32>& offset); - rtl:: OUString SAL_CALL getCharConversion(const rtl:: OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions); + rtl:: OUString getCharConversion(const rtl:: OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions); css::lang::Locale aLocale; }; diff --git a/i18npool/inc/textconversionImpl.hxx b/i18npool/inc/textconversionImpl.hxx index 43642ef97452..222e5911dce2 100644 --- a/i18npool/inc/textconversionImpl.hxx +++ b/i18npool/inc/textconversionImpl.hxx @@ -69,7 +69,7 @@ private: css::uno::Reference < css::uno::XComponentContext > m_xContext; /// @throws css::lang::NoSupportException - void SAL_CALL getLocaleSpecificTextConversion( const css::lang::Locale& rLocale ); + void getLocaleSpecificTextConversion( const css::lang::Locale& rLocale ); }; } // i18npool diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx index 0d70de37bfd2..6012d41490d8 100644 --- a/i18npool/inc/transliterationImpl.hxx +++ b/i18npool/inc/transliterationImpl.hxx @@ -91,7 +91,7 @@ private: css::uno::Reference< css::i18n::XExtendedTransliteration > caseignore; /// @throws css::uno::RuntimeException - bool SAL_CALL loadModuleByName( const OUString& implName, + bool loadModuleByName( const OUString& implName, css::uno::Reference<css::i18n::XExtendedTransliteration> & body, const css::lang::Locale& rLocale); void clear(); @@ -101,7 +101,7 @@ private: css::uno::Reference< css::i18n::XExtendedTransliteration >& body ); /// @throws css::uno::RuntimeException - css::uno::Sequence< OUString > SAL_CALL getRange( + css::uno::Sequence< OUString > getRange( const css::uno::Sequence< OUString > &inStrs, sal_Int32 length, const sal_Int16 _nCascade); }; diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx index dd3d90209e93..b1ab5b423dbf 100644 --- a/i18npool/inc/transliteration_Numeric.hxx +++ b/i18npool/inc/transliteration_Numeric.hxx @@ -49,7 +49,7 @@ protected: bool recycleSymbol; private: /// @throws css::uno::RuntimeException - OUString SAL_CALL + OUString transliterateBullet( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset ); }; diff --git a/i18npool/inc/transliteration_body.hxx b/i18npool/inc/transliteration_body.hxx index d0f39a19b43c..5e9d2d7971ba 100644 --- a/i18npool/inc/transliteration_body.hxx +++ b/i18npool/inc/transliteration_body.hxx @@ -71,7 +71,7 @@ class Transliteration_casemapping : public Transliteration_body { public: Transliteration_casemapping(); - void SAL_CALL setMappingType(const MappingType rMappingType, const css::lang::Locale& rLocale ); + void setMappingType(const MappingType rMappingType, const css::lang::Locale& rLocale ); }; class Transliteration_togglecase : public Transliteration_body diff --git a/i18npool/inc/transliteration_caseignore.hxx b/i18npool/inc/transliteration_caseignore.hxx index cd49d57c65ab..c16dfca46f6c 100644 --- a/i18npool/inc/transliteration_caseignore.hxx +++ b/i18npool/inc/transliteration_caseignore.hxx @@ -50,7 +50,7 @@ public: private: /// @throws css::uno::RuntimeException - sal_Int32 SAL_CALL compare( + sal_Int32 compare( const OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2); |