summaryrefslogtreecommitdiff
path: root/editeng/source/misc/svxacorr.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-03 09:21:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-03 22:37:32 +0200
commit8ddc22c45c1a338d6de0b9f8cb26c39dc4065dbc (patch)
tree1d9d627bb3eda6a6619fc810b84d9551ebd93748 /editeng/source/misc/svxacorr.cxx
parent67f7a26c047ae2878e3ecd76f83af3941b9079c3 (diff)
Upcoming loplugin:elidestringvar: editeng
Change-Id: Ia14a1391cbc40b98d24e37c3a54b16871441fc78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95399 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng/source/misc/svxacorr.cxx')
-rw-r--r--editeng/source/misc/svxacorr.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index c776cb45aae7..c6a0fd9da25d 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2387,8 +2387,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadCplSttExceptList()
try
{
tools::SvRef<SotStorage> xStg = new SotStorage( sShareAutoCorrFile, StreamMode::READ | StreamMode::SHARE_DENYNONE );
- OUString sTemp ( pXMLImplCplStt_ExcptLstStr );
- if( xStg.is() && xStg->IsContained( sTemp ) )
+ if( xStg.is() && xStg->IsContained( pXMLImplCplStt_ExcptLstStr ) )
LoadXMLExceptList_Imp( pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, xStg );
}
catch (const css::ucb::ContentCreationException&)
@@ -2417,8 +2416,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadWrdSttExceptList()
try
{
tools::SvRef<SotStorage> xStg = new SotStorage( sShareAutoCorrFile, StreamMode::READ | StreamMode::SHARE_DENYNONE );
- OUString sTemp ( pXMLImplWrdStt_ExcptLstStr );
- if( xStg.is() && xStg->IsContained( sTemp ) )
+ if( xStg.is() && xStg->IsContained( pXMLImplWrdStt_ExcptLstStr ) )
LoadXMLExceptList_Imp( pWrdStt_ExcptLst, pXMLImplWrdStt_ExcptLstStr, xStg );
}
catch (const css::ucb::ContentCreationException &)
@@ -2528,11 +2526,9 @@ void SvxAutoCorrectLanguageLists::MakeUserStorage_Impl()
if( xSrcStg.is() && xDstStg.is() )
{
- OUString sXMLWord ( pXMLImplWrdStt_ExcptLstStr );
- OUString sXMLSentence ( pXMLImplCplStt_ExcptLstStr );
std::unique_ptr<SvStringsISortDtor> pTmpWordList;
- if (xSrcStg->IsContained( sXMLWord ) )
+ if (xSrcStg->IsContained( pXMLImplWrdStt_ExcptLstStr ) )
LoadXMLExceptList_Imp( pTmpWordList, pXMLImplWrdStt_ExcptLstStr, xSrcStg );
if (pTmpWordList)
@@ -2542,7 +2538,7 @@ void SvxAutoCorrectLanguageLists::MakeUserStorage_Impl()
}
- if (xSrcStg->IsContained( sXMLSentence ) )
+ if (xSrcStg->IsContained( pXMLImplCplStt_ExcptLstStr ) )
LoadXMLExceptList_Imp( pTmpWordList, pXMLImplCplStt_ExcptLstStr, xSrcStg );
if (pTmpWordList)