diff options
Diffstat (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport8.cxx')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport8.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx index f11b7d8ae140..0faed8c2ac02 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx @@ -8,6 +8,7 @@ */ #include <memory> +#include <string_view> #ifdef MACOSX #define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 @@ -65,7 +66,8 @@ public: virtual std::unique_ptr<Resetter> preTest(const char* filename) override { - if (OString(filename) == "smartart.docx" || OString(filename) == "strict-smartart.docx" ) + if (filename == std::string_view("smartart.docx") + || filename == std::string_view("strict-smartart.docx") ) { std::unique_ptr<Resetter> pResetter(new Resetter( [] () { |