From 7f305223fa6d6a1ad4a6f906b14f879cb01539be Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 2 Nov 2019 19:52:33 +0100 Subject: New loplugin:conditionalstring Change-Id: I2eab990c15f845b44a3b598571aca361dadf9ff3 Reviewed-on: https://gerrit.libreoffice.org/81946 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- ucb/source/ucp/cmis/cmis_content.cxx | 4 ++-- ucb/source/ucp/file/filglob.cxx | 4 ++-- ucb/source/ucp/package/pkgcontent.cxx | 4 ++-- ucb/source/ucp/package/pkguri.cxx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 7d146a52bbaf..c9fdfe8c6552 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -1715,8 +1715,8 @@ namespace cmis try { sRet = isFolder( uno::Reference< ucb::XCommandEnvironment >() ) - ? OUString(CMIS_FOLDER_TYPE) - : OUString(CMIS_FILE_TYPE); + ? OUStringLiteral(CMIS_FOLDER_TYPE) + : OUStringLiteral(CMIS_FILE_TYPE); } catch (const uno::RuntimeException&) { diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx index 18610efd92ba..15277a2bc8bd 100644 --- a/ucb/source/ucp/file/filglob.cxx +++ b/ucb/source/ucp/file/filglob.cxx @@ -498,8 +498,8 @@ namespace fileaccess { Sequence< OUString > aSeq( 1 ); aSeq[0] = ( errorCode == TASKHANDLING_NONAMESET_INSERT_COMMAND ) ? - OUString("Title") : - OUString("ContentType"); + OUStringLiteral("Title") : + OUStringLiteral("ContentType"); aAny <<= MissingPropertiesException( "a property is missing, necessary to create a content", diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 08e5129b1cfb..19f2017716bb 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -224,8 +224,8 @@ OUString Content::getContentType( return ( "application/" + aScheme + ( bFolder - ? OUString("-folder") - : OUString("-stream") ) ); + ? OUStringLiteral("-folder") + : OUStringLiteral("-stream") ) ); } diff --git a/ucb/source/ucp/package/pkguri.cxx b/ucb/source/ucp/package/pkguri.cxx index d259448cdf07..d1f530d4634d 100644 --- a/ucb/source/ucp/package/pkguri.cxx +++ b/ucb/source/ucp/package/pkguri.cxx @@ -109,8 +109,8 @@ void PackageUri::init() const { m_aParam += ( !m_aParam.isEmpty() - ? OUString( "&purezip" ) - : OUString( "?purezip" ) ); + ? OUStringLiteral( "&purezip" ) + : OUStringLiteral( "?purezip" ) ); } aPureUri = aPureUri.replaceAt( 0, -- cgit