summaryrefslogtreecommitdiff
path: root/vcl/generic/glyphs/gcach_layout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic/glyphs/gcach_layout.cxx')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index ff644e34c00f..cbf3f9c159d5 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -27,6 +27,7 @@
#include <i18nlangtag/mslangid.hxx>
#include <vcl/svapp.hxx>
+#include <vcl/unohelp.hxx>
#include <sal/alloca.h>
#include <rtl/instance.hxx>
@@ -34,15 +35,13 @@
#include <hb-icu.h>
#include <hb-ot.h>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
-#include <comphelper/processfactory.hxx>
// layout implementation for ServerFont
-
ServerFontLayout::ServerFontLayout( ServerFont& rFont )
: mrServerFont( rFont )
-{ }
+{
+}
void ServerFontLayout::DrawText( SalGraphics& rSalGraphics ) const
{
@@ -86,12 +85,7 @@ void ServerFontLayout::setNeedFallback(ImplLayoutArgs& rArgs, sal_Int32 nCharPos
using namespace ::com::sun::star;
if (!mxBreak.is())
- {
- uno::Reference< lang::XMultiServiceFactory > xFactory =
- comphelper::getProcessServiceFactory();
- mxBreak = uno::Reference< i18n::XBreakIterator >(xFactory->createInstance(
- "com.sun.star.i18n.BreakIterator"), uno::UNO_QUERY);
- }
+ mxBreak = vcl::unohelper::CreateBreakIterator();
lang::Locale aLocale(rArgs.maLanguageTag.getLocale());