diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 18:39:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-15 08:37:54 +0200 |
commit | b52f309f2b9037ee53ab8ac2d66967c012ba82f1 (patch) | |
tree | 4a4ace081c742af0cef50909e06394d9aef80345 /linguistic/source | |
parent | 897493fbd34a1bd10320767b48cbf04d422f89b3 (diff) |
improve loplugin simplifyconstruct
to find stuff like
OUString s = OUString("xxx")
Change-Id: Ie7ed074c1ae012734c67a2a89c564c1900a4ab04
Reviewed-on: https://gerrit.libreoffice.org/70697
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/convdic.cxx | 4 | ||||
-rw-r--r-- | linguistic/source/dicimp.cxx | 4 | ||||
-rw-r--r-- | linguistic/source/dlistimp.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index 071cb8d310df..7c2c602a79fa 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -93,7 +93,7 @@ static void ReadThroughDic( const OUString &rMainURL, ConvDicXMLImport &rImport if (!xIn.is()) return; - SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xIn ) ); + SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xIn ) ); // prepare ParserInputSource xml::sax::InputSource aParserInput; @@ -246,7 +246,7 @@ void ConvDic::Save() if (!xStream.is()) return; - SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); + SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xStream ) ); // get XML writer uno::Reference< xml::sax::XWriter > xSaxWriter = xml::sax::Writer::create(xContext); diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index b99f632c9842..f6a976679641 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -293,7 +293,7 @@ ErrCode DictionaryNeo::loadEntries(const OUString &rMainURL) if (!xStream.is()) return ErrCode(sal_uInt32(-1)); - SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); + SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xStream ) ); // read header bool bNegativ; @@ -427,7 +427,7 @@ ErrCode DictionaryNeo::saveEntries(const OUString &rURL) if (!xStream.is()) return ErrCode(sal_uInt32(-1)); - SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); + SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xStream ) ); // Always write as the latest version, i.e. DIC_VERSION_7 diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 9ca759a18da3..115fdca74669 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -820,7 +820,7 @@ static bool IsVers2OrNewer( const OUString& rFileURL, LanguageType& nLng, bool& if (!xStream.is()) return false; - SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); + SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xStream ) ); int nDicVersion = ReadDicVersion(pStream, nLng, bNeg, aDicName); return 2 == nDicVersion || nDicVersion >= 5; |