diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-15 12:25:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-19 18:31:10 +0200 |
commit | ab699bfdb3375f7142a50cc35322e2924c9e5945 (patch) | |
tree | 8f935378a1ee272f4316a50f902e214d50ce8cc6 /oox | |
parent | f393785a146433cccd5bbecf1e49b5f1485ec5a7 (diff) |
new loplugin:stringviewvar looks for OUString vars that can be
... that can be string_view
Change-Id: I0ddf66725e08b58e866a764f57200dd188b9f639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/dump/pptxdumper.cxx | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/oox/source/dump/pptxdumper.cxx b/oox/source/dump/pptxdumper.cxx index dba538593aae..c65b792063b2 100644 --- a/oox/source/dump/pptxdumper.cxx +++ b/oox/source/dump/pptxdumper.cxx @@ -24,6 +24,7 @@ #include <oox/dump/xlsbdumper.hxx> #include <oox/helper/zipstorage.hxx> #include <oox/ole/olestorage.hxx> +#include <o3tl/string_view.hxx> #ifdef DBG_UTIL @@ -42,41 +43,41 @@ RootStorageObject::RootStorageObject( const DumperBase& rParent ) void RootStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& rStrgPath, const OUString& rStrmName, const OUString& rSysFileName ) { - OUString aExt( InputOutputHelper::getFileNameExtension( rStrmName ) ); - if( aExt.equalsIgnoreAsciiCase("pptx") || - aExt.equalsIgnoreAsciiCase("potx") ) + std::u16string_view aExt( InputOutputHelper::getFileNameExtension( rStrmName ) ); + if( o3tl::equalsIgnoreAsciiCase(aExt, u"pptx") || + o3tl::equalsIgnoreAsciiCase(aExt, u"potx") ) { Dumper( getContext(), rxStrm, rSysFileName ).dump(); } #ifdef FIXME else if( - aExt.equalsIgnoreAsciiCase("xlsb") || - aExt.equalsIgnoreAsciiCase("xlsm") || - aExt.equalsIgnoreAsciiCase("xlsx") || - aExt.equalsIgnoreAsciiCase("xltm") || - aExt.equalsIgnoreAsciiCase("xltx") ) + o3tl::equalsIgnoreAsciiCase(aExt, u"xlsb") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlsm") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlsx") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xltm") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xltx") ) { ::oox::dump::xlsb::Dumper( getContext(), rxStrm, rSysFileName ).dump(); } else if( - aExt.equalsIgnoreAsciiCase("xla") || - aExt.equalsIgnoreAsciiCase("xlc") || - aExt.equalsIgnoreAsciiCase("xlm") || - aExt.equalsIgnoreAsciiCase("xls") || - aExt.equalsIgnoreAsciiCase("xlt") || - aExt.equalsIgnoreAsciiCase("xlw") ) + o3tl::equalsIgnoreAsciiCase(aExt, u"xla") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlc") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlm") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xls") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlt") || + o3tl::equalsIgnoreAsciiCase(aExt, u"xlw") ) { ::oox::dump::biff::Dumper( getContext(), rxStrm, rSysFileName ).dump(); } #endif else if( - aExt.equalsIgnoreAsciiCase("xml") || - aExt.equalsIgnoreAsciiCase("vml") || - aExt.equalsIgnoreAsciiCase("rels") ) + o3tl::equalsIgnoreAsciiCase(aExt, u"xml") || + o3tl::equalsIgnoreAsciiCase(aExt, u"vml") || + o3tl::equalsIgnoreAsciiCase(aExt, u"rels") ) { XmlStreamObject( *this, rxStrm, rSysFileName ).dump(); } - else if( aExt.equalsIgnoreAsciiCase("bin") ) + else if( o3tl::equalsIgnoreAsciiCase(aExt, u"bin") ) { if( rStrgPath == "ppt" && rStrmName == "vbaProject.bin" ) { |