summaryrefslogtreecommitdiff
path: root/sw/source/filter/basflt/iodetect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-31 13:24:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 07:57:16 +0000
commitdce867e8c4863c969eea3515a988630b74708a43 (patch)
tree340cb8408241fe34bf1c76f54b9ca41ca95a72ab /sw/source/filter/basflt/iodetect.cxx
parent27832947f0d9406c1757182ffa57262f3f03af4b (diff)
loplugin:stringconstant handle calls to constructors with one arg
Change-Id: Ide9148a908bef46ba14640dfa6f556beaf6e3f60 Reviewed-on: https://gerrit.libreoffice.org/33772 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/basflt/iodetect.cxx')
-rw-r--r--sw/source/filter/basflt/iodetect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index 6522a92045af..c9cf78c2eac2 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -63,8 +63,8 @@ const OUString SwIoSystem::GetSubStorageName( const SfxFilter& rFltr )
std::shared_ptr<const SfxFilter> SwIoSystem::GetFilterOfFormat(const OUString& rFormatNm,
const SfxFilterContainer* pCnt)
{
- SfxFilterContainer aCntSw( OUString(sSWRITER) );
- SfxFilterContainer aCntSwWeb( OUString(sSWRITERWEB) );
+ SfxFilterContainer aCntSw( sSWRITER );
+ SfxFilterContainer aCntSwWeb( sSWRITERWEB );
const SfxFilterContainer* pFltCnt = pCnt ? pCnt : ( IsDocShellRegistered() ? &aCntSw : &aCntSwWeb );
do {
@@ -143,8 +143,8 @@ bool SwIoSystem::IsValidStgFilter(SotStorage& rStg, const SfxFilter& rFilter)
// Returns the internal FilterName.
std::shared_ptr<const SfxFilter> SwIoSystem::GetFileFilter(const OUString& rFileName)
{
- SfxFilterContainer aCntSw( OUString(sSWRITER) );
- SfxFilterContainer aCntSwWeb( OUString(sSWRITERWEB) );
+ SfxFilterContainer aCntSw( sSWRITER );
+ SfxFilterContainer aCntSwWeb( sSWRITERWEB );
const SfxFilterContainer* pFCntnr = IsDocShellRegistered() ? &aCntSw : &aCntSwWeb;
SfxFilterMatcher aMatcher( pFCntnr->GetName() );