summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-06-13 20:02:07 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-06-14 08:11:28 +0200
commitb6758293e65864530f1b2508ec426bb4f0268c75 (patch)
tree45cc0f35820afa9ef2c7cc36c9ffd523ac71163e /xmloff
parentb7d6c3ce33ae06e6a61eac0e185121cb3931f61f (diff)
Remove some unused includes
See tdf#42949 for motivation. Change-Id: I157b331195cc8262e6bd1dcc536cb653587fc45f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135775 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/qa/unit/draw.cxx2
-rw-r--r--xmloff/source/text/xmllinebreakcontext.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/qa/unit/draw.cxx b/xmloff/qa/unit/draw.cxx
index 3c6d7c707be9..fdfc6e98aa02 100644
--- a/xmloff/qa/unit/draw.cxx
+++ b/xmloff/qa/unit/draw.cxx
@@ -25,8 +25,6 @@
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/text/XTextTable.hpp>
-#include <comphelper/configuration.hxx>
-#include <officecfg/Office/Common.hxx>
#include <unotools/mediadescriptor.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
diff --git a/xmloff/source/text/xmllinebreakcontext.cxx b/xmloff/source/text/xmllinebreakcontext.cxx
index 52bf7920e4b9..67b56c2d32c8 100644
--- a/xmloff/source/text/xmllinebreakcontext.cxx
+++ b/xmloff/source/text/xmllinebreakcontext.cxx
@@ -38,7 +38,8 @@ SvXMLLineBreakContext::SvXMLLineBreakContext(SvXMLImport& rImport, XMLTextImport
void SvXMLLineBreakContext::startFastElement(
sal_Int32 /*nElement*/, const uno::Reference<xml::sax::XFastAttributeList>& xAttrList)
{
- uno::Reference<lang::XMultiServiceFactory> xFactory(GetImport().GetModel(), uno::UNO_QUERY);
+ const uno::Reference<frame::XModel>& xModel = GetImport().GetModel();
+ uno::Reference<lang::XMultiServiceFactory> xFactory(xModel, uno::UNO_QUERY);
if (!xFactory.is())
return;