sw/source/writerfilter/ooxml/factoryimpl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ea7b817b2779dc514cc0908f94a1b13fce2e6ff9 Author: Noel Grandin <[email protected]> AuthorDate: Wed Feb 4 13:55:03 2026 +0200 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Feb 6 09:21:22 2026 +0100 tdf#170595 use more string literal avoid runtime heap allocation Change-Id: I14b45f0ec4949d724e765112958dfc1b6f442e6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198725 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sw/source/writerfilter/ooxml/factoryimpl.py b/sw/source/writerfilter/ooxml/factoryimpl.py index f88e48b094c2..73086ccf6843 100644 --- a/sw/source/writerfilter/ooxml/factoryimpl.py +++ b/sw/source/writerfilter/ooxml/factoryimpl.py @@ -159,7 +159,7 @@ def getFastParser(): xInit->initialize(args); """) for url in sorted(ooxUrlAliases.keys()): - print(""" mxFastParser->registerNamespace("%s", oox::NMSP_%s);""" % (url, ooxUrlAliases[url])) + print(""" mxFastParser->registerNamespace(u"%s"_ustr, oox::NMSP_%s);""" % (url, ooxUrlAliases[url])) print(""" } return mxFastParser;
