diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 15:23:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-17 08:25:47 +0200 |
commit | ccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch) | |
tree | 2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /i18npool/source | |
parent | da5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff) |
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer
Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd
Reviewed-on: https://gerrit.libreoffice.org/61837
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/transliteration/ignoreKana.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/transliteration/ignoreSize_ja_JP.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/transliteration/ignoreWidth.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 11258ab7d9c4..56c396c6b3cb 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1476,7 +1476,7 @@ oslGenericFunction LocaleDataImpl::getFunctionSymbol( const Locale& rLocale, con if (pCachedItem) cachedItem = std::move(pCachedItem); - if (cachedItem.get()) + if (cachedItem) cachedItem->aLocale = rLocale; return pSymbol; diff --git a/i18npool/source/transliteration/ignoreKana.cxx b/i18npool/source/transliteration/ignoreKana.cxx index 3267fc06d919..29c8b2f1a31d 100644 --- a/i18npool/source/transliteration/ignoreKana.cxx +++ b/i18npool/source/transliteration/ignoreKana.cxx @@ -41,7 +41,7 @@ ignoreKana::transliterateRange( const OUString& str1, const OUString& str2 ) rtl::Reference< hiraganaToKatakana > t1(new hiraganaToKatakana); rtl::Reference< katakanaToHiragana > t2(new katakanaToHiragana); - return transliteration_Ignore::transliterateRange(str1, str2, *t1.get(), *t2.get()); + return transliteration_Ignore::transliterateRange(str1, str2, *t1, *t2); } sal_Unicode SAL_CALL diff --git a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx index 143c679a9b31..8ed2be8b6db3 100644 --- a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx @@ -40,7 +40,7 @@ ignoreSize_ja_JP::transliterateRange( const OUString& str1, const OUString& str2 rtl::Reference< smallToLarge_ja_JP > t1(new smallToLarge_ja_JP); rtl::Reference< largeToSmall_ja_JP > t2(new largeToSmall_ja_JP); - return transliteration_Ignore::transliterateRange(str1, str2, *t1.get(), *t2.get()); + return transliteration_Ignore::transliterateRange(str1, str2, *t1, *t2); } sal_Unicode SAL_CALL diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx index e0e9ef7b701d..d0a0343869bd 100644 --- a/i18npool/source/transliteration/ignoreWidth.cxx +++ b/i18npool/source/transliteration/ignoreWidth.cxx @@ -41,7 +41,7 @@ ignoreWidth::transliterateRange( const OUString& str1, const OUString& str2 ) rtl::Reference< fullwidthToHalfwidth > t1(new fullwidthToHalfwidth); rtl::Reference< halfwidthToFullwidth > t2(new halfwidthToFullwidth); - return transliteration_Ignore::transliterateRange(str1, str2, *t1.get(), *t2.get()); + return transliteration_Ignore::transliterateRange(str1, str2, *t1, *t2); } sal_Unicode SAL_CALL |