sdext/source/pdfimport/inc/genericelements.hxx | 4 +--- sdext/source/pdfimport/tree/genericelements.cxx | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-)
New commits: commit c9e961e6803a70587bd4686d05abdd4ac11de434 Author: Kevin Suo <suokunl...@126.com> AuthorDate: Mon Dec 5 17:37:39 2022 +0800 Commit: Kevin Suo <suokunl...@126.com> CommitDate: Tue Dec 6 03:42:27 2022 +0000 "using namespace com::sun::star" -> css in header file See Stephan Bergmann's comment the following change (thanks!): https://gerrit.libreoffice.org/c/core/+/143598 Change-Id: I409b823439979c64cadcb582d8fb4dec4ff412b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143664 Tested-by: Jenkins Reviewed-by: Kevin Suo <suokunl...@126.com> diff --git a/sdext/source/pdfimport/inc/genericelements.hxx b/sdext/source/pdfimport/inc/genericelements.hxx index 37b448d2b613..6d1459a1f032 100644 --- a/sdext/source/pdfimport/inc/genericelements.hxx +++ b/sdext/source/pdfimport/inc/genericelements.hxx @@ -32,8 +32,6 @@ #include <list> -using namespace com::sun::star; - namespace pdfi { class XmlEmitter; @@ -313,7 +311,7 @@ namespace pdfi { return std::make_shared<DocumentElement>(); } }; - bool isComplex(const uno::Reference<i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem); + bool isComplex(const css::uno::Reference<css::i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem); } #endif diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx index c3c816aecdf2..1d11cd0d914e 100644 --- a/sdext/source/pdfimport/tree/genericelements.cxx +++ b/sdext/source/pdfimport/tree/genericelements.cxx @@ -431,12 +431,12 @@ void DocumentElement::visitedBy( ElementTreeVisitor& rV rVisitor.visit(*this, rParentIt); } -bool isComplex(const uno::Reference<i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem) { +bool isComplex(const css::uno::Reference<css::i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem) { OUString str(pTextElem->Text.toString()); for(int i=0; i< str.getLength(); i++) { sal_Int16 nType = rBreakIterator->getScriptType(str, i); - if (nType == i18n::ScriptType::COMPLEX) + if (nType == css::i18n::ScriptType::COMPLEX) { return true; }