summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/i18n/nativenumberwrapper.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx
index 5fa8f0a0b943..59238084f695 100644
--- a/unotools/source/i18n/nativenumberwrapper.cxx
+++ b/unotools/source/i18n/nativenumberwrapper.cxx
@@ -20,20 +20,15 @@
#include <unotools/nativenumberwrapper.hxx>
#include <tools/debug.hxx>
-#include "instance.hxx"
+#include <com/sun/star/i18n/NativeNumberSupplier.hpp>
using namespace ::com::sun::star;
NativeNumberWrapper::NativeNumberWrapper(
- const uno::Reference< lang::XMultiServiceFactory > & xSF
+ const uno::Reference< uno::XComponentContext > & rxContext
)
- :
- xSMgr( xSF )
{
- xNNS = uno::Reference< i18n::XNativeNumberSupplier > (
- intl_createInstance( xSMgr, "com.sun.star.i18n.NativeNumberSupplier",
- "NativeNumberWrapper"), uno::UNO_QUERY );
- DBG_ASSERT( xNNS.is(), "NativeNumberWrapper: no NativeNumberSupplier" );
+ xNNS = i18n::NativeNumberSupplier::create(rxContext);
}