From de74d98c58db604aafc0ee623c252f3aa25ac4b7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 20 Sep 2020 12:53:27 +0100 Subject: OUStringLiteral/OStringLiteral coverity PARSE_ERROR workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit do more like commit 121771e37f7e2de41cd5643475861062bf25627b Date: Mon Sep 21 09:17:54 2020 +0200 Make some OUStringLiteral vars constexpr cause coverity can live with that Change-Id: I9efd7f848289c4865997a44c6780373068422227 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103147 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- ucb/source/ucp/file/filtask.cxx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index 432f60dd66e3..790dd3d7ba8c 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -116,21 +116,21 @@ TaskManager::MyProperty::MyProperty( bool theisNat // Default properties -const OUStringLiteral Title( u"Title" ); -const OUStringLiteral CasePreservingURL( u"CasePreservingURL" ); -const OUStringLiteral IsDocument( u"IsDocument" ); -const OUStringLiteral IsFolder( u"IsFolder" ); -const OUStringLiteral DateModified( u"DateModified" ); -const OUStringLiteral Size( u"Size" ); -const OUStringLiteral IsVolume( u"IsVolume" ); -const OUStringLiteral IsRemoveable( u"IsRemoveable" ); -const OUStringLiteral IsRemote( u"IsRemote" ); -const OUStringLiteral IsCompactDisc( u"IsCompactDisc" ); -const OUStringLiteral IsFloppy( u"IsFloppy" ); -const OUStringLiteral IsHidden( u"IsHidden" ); -const OUStringLiteral ContentType( u"ContentType" ); -const OUStringLiteral IsReadOnly( u"IsReadOnly" ); -const OUStringLiteral CreatableContentsInfo( u"CreatableContentsInfo" ); +constexpr OUStringLiteral Title( u"Title" ); +constexpr OUStringLiteral CasePreservingURL( u"CasePreservingURL" ); +constexpr OUStringLiteral IsDocument( u"IsDocument" ); +constexpr OUStringLiteral IsFolder( u"IsFolder" ); +constexpr OUStringLiteral DateModified( u"DateModified" ); +constexpr OUStringLiteral Size( u"Size" ); +constexpr OUStringLiteral IsVolume( u"IsVolume" ); +constexpr OUStringLiteral IsRemoveable( u"IsRemoveable" ); +constexpr OUStringLiteral IsRemote( u"IsRemote" ); +constexpr OUStringLiteral IsCompactDisc( u"IsCompactDisc" ); +constexpr OUStringLiteral IsFloppy( u"IsFloppy" ); +constexpr OUStringLiteral IsHidden( u"IsHidden" ); +constexpr OUStringLiteral ContentType( u"ContentType" ); +constexpr OUStringLiteral IsReadOnly( u"IsReadOnly" ); +constexpr OUStringLiteral CreatableContentsInfo( u"CreatableContentsInfo" ); TaskManager::TaskManager( const uno::Reference< uno::XComponentContext >& rxContext, FileProvider* pProvider, bool bWithConfig ) -- cgit