summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-19 09:50:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-24 13:23:59 +0100
commita069fac4a08f93db74799d00f047e04f1a0735cd (patch)
treeb16c457bab72bd6bc69435ba1a4b610b3cc8d6a0 /package
parentd9c85f5059000b129ca627df9f971396e4ee30d2 (diff)
loplugin:stringliteraldefine in comphelper
Change-Id: I60ccd6049db65fef2397798ab916b0d1e24c0fdc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125531 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/manifest/ManifestExport.cxx4
-rw-r--r--package/source/zippackage/ZipPackage.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx
index 7ac46874f7ae..0c0e963e1c4b 100644
--- a/package/source/manifest/ManifestExport.cxx
+++ b/package/source/manifest/ManifestExport.cxx
@@ -188,7 +188,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > con
sCdataAttribute,
MANIFEST_OASIS_NAMESPACE );
bAcceptNonemptyVersion = true;
- if ( aDocVersion.compareTo( u"" ODFVER_012_TEXT ) >= 0 )
+ if ( aDocVersion.compareTo( ODFVER_012_TEXT ) >= 0 )
{
// this is ODF12 or later generation, let encrypted
// streams contain start-key-generation entry
@@ -240,7 +240,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > con
xHandler->ignorableWhitespace ( sWhiteSpace );
// ==== manifest:keyinfo & children
- bool const isODF13(aDocVersion.compareTo(u"" ODFVER_013_TEXT) >= 0);
+ bool const isODF13(aDocVersion.compareTo(ODFVER_013_TEXT) >= 0);
if (!isODF13)
{
xHandler->startElement(sManifestKeyInfoElement, nullptr);
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 3882bb887c99..81b8ee9f89a5 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -424,7 +424,7 @@ void ZipPackage::parseManifest()
m_bInconsistent = m_xRootFolder->LookForUnexpectedODF12Streams( std::u16string_view() );
- bool bODF12AndNewer = ( m_xRootFolder->GetVersion().compareTo( u"" ODFVER_012_TEXT ) >= 0 );
+ bool bODF12AndNewer = ( m_xRootFolder->GetVersion().compareTo( ODFVER_012_TEXT ) >= 0 );
if ( !m_bForceRecovery && bODF12AndNewer )
{
if ( m_bInconsistent )