fdo#46808: Slight simplifications of previous commit

Change-Id: I9e0158faa24d388176427529500f073b8b6f34bd
This commit is contained in:
Stephan Bergmann
2012-11-05 16:42:31 +01:00
parent d2c45d0460
commit 7c884716a7
2 changed files with 3 additions and 11 deletions

View File

@@ -31,15 +31,7 @@
#include <unotools/nativenumberwrapper.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
namespace comphelper {
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
getComponentContext(
com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
const & factory);
}
#include <comphelper/processfactory.hxx>
/*
On demand instanciation and initialization of several i18n wrappers,

View File

@@ -34,9 +34,9 @@ using namespace ::utl;
TransliterationWrapper::TransliterationWrapper(
const Reference< XComponentContext > & rxContext,
sal_uInt32 nTyp )
: nType( nTyp ), nLanguage( 0 ), bFirstCall( sal_True )
: xTrans( Transliteration::create(rxContext) ), nType( nTyp ),
nLanguage( 0 ), bFirstCall( sal_True )
{
xTrans = Transliteration::create(rxContext);
}