summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 18:39:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-15 08:37:54 +0200
commitb52f309f2b9037ee53ab8ac2d66967c012ba82f1 (patch)
tree4a4ace081c742af0cef50909e06394d9aef80345 /basctl
parent897493fbd34a1bd10320767b48cbf04d422f89b3 (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 'basctl')
-rw-r--r--basctl/source/basicide/scriptdocument.cxx2
-rw-r--r--basctl/source/dlged/managelang.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx
index 16e73e6da2f0..2cf0a44dcaf5 100644
--- a/basctl/source/basicide/scriptdocument.cxx
+++ b/basctl/source/basicide/scriptdocument.cxx
@@ -1087,7 +1087,7 @@ namespace basctl
for (auto const& doc : aDocuments)
{
- const ScriptDocument aCheck = ScriptDocument( doc.xModel );
+ const ScriptDocument aCheck( doc.xModel );
if ( _rUrlOrCaption == aCheck.getTitle()
|| _rUrlOrCaption == aCheck.m_pImpl->getURL()
)
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx
index d23563714196..2c10c81c0eab 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -302,7 +302,7 @@ Sequence< Locale > SetDefaultLanguageDialog::GetLocales() const
bool bNotLocalized = !m_xLocalizationMgr->isLibraryLocalized();
if (bNotLocalized)
{
- LanguageType eType = LanguageType(m_xLanguageLB->get_selected_id().toUInt32());
+ LanguageType eType(m_xLanguageLB->get_selected_id().toUInt32());
Sequence<Locale> aLocaleSeq(1);
aLocaleSeq[0] = LanguageTag(eType).getLocale();
return aLocaleSeq;
@@ -313,7 +313,7 @@ Sequence< Locale > SetDefaultLanguageDialog::GetLocales() const
{
if (m_xCheckLangLB->get_toggle(i, 0) == TRISTATE_TRUE)
{
- LanguageType eType = LanguageType(m_xCheckLangLB->get_id(i).toUInt32());
+ LanguageType eType(m_xCheckLangLB->get_id(i).toUInt32());
aLocaleSeq.push_back(LanguageTag::convertToLocale(eType));
}
}