diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-02 19:52:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-02 21:47:38 +0100 |
commit | 7f305223fa6d6a1ad4a6f906b14f879cb01539be (patch) | |
tree | c48f2af6875094ab09853058323c804c6cb36d4c /sfx2/source | |
parent | ed94101d8c399f6de2e2b9b7cd31dd6b68d269a8 (diff) |
New loplugin:conditionalstring
Change-Id: I2eab990c15f845b44a3b598571aca361dadf9ff3
Reviewed-on: https://gerrit.libreoffice.org/81946
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index d549ab6c0d42..6c357ddcc6c8 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -158,7 +158,7 @@ std::vector< OUString > SfxContentHelper::GetHelpTreeViewContents( const OUStrin bool bFolder = xRow->getBoolean(2); OUString aRow = aTitle + "\t"; aRow += xContentAccess->queryContentIdentifierString() + "\t"; - aRow += bFolder ? OUString("1") : OUString("0"); + aRow += bFolder ? OUStringLiteral("1") : OUStringLiteral("0"); aProperties.push_back( aRow ); } } diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 3cc88838a489..f8e1b2821b6b 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1050,7 +1050,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c } else { - aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled")); + aBuffer.append(aEvent.IsEnabled ? OUStringLiteral("enabled") : OUStringLiteral("disabled")); } } else if (aEvent.FeatureURL.Path == "Cut" || @@ -1090,7 +1090,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c aEvent.FeatureURL.Path == "ThesaurusDialog") { - aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled")); + aBuffer.append(aEvent.IsEnabled ? OUStringLiteral("enabled") : OUStringLiteral("disabled")); } else if (aEvent.FeatureURL.Path == "AssignLayout" || aEvent.FeatureURL.Path == "StatusSelectionMode" || |