services.cxx (24acc546) | services.cxx (24c56ab9) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 333 unchanged lines hidden (view full) --- 342 343 // loop through the sequences and register the service providers 344 const ::rtl::OUString* pClasses = s_aClassImplementationNames.getConstArray(); 345 const Sequence< ::rtl::OUString >* pServices = s_aClassServiceNames.getConstArray(); 346 const sal_Int64* pFunctionsAsInts = s_aFactories.getConstArray(); 347 348 for (sal_Int32 i=0; i<nClasses; ++i, ++pClasses, ++pServices, ++pFunctionsAsInts) 349 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 333 unchanged lines hidden (view full) --- 342 343 // loop through the sequences and register the service providers 344 const ::rtl::OUString* pClasses = s_aClassImplementationNames.getConstArray(); 345 const Sequence< ::rtl::OUString >* pServices = s_aClassServiceNames.getConstArray(); 346 const sal_Int64* pFunctionsAsInts = s_aFactories.getConstArray(); 347 348 for (sal_Int32 i=0; i<nClasses; ++i, ++pClasses, ++pServices, ++pFunctionsAsInts) 349 { |
350 if (rtl_ustr_ascii_compare(*pClasses, _pImplName) == 0) | 350 if( pClasses->compareToAscii( _pImplName) == 0) |
351 { 352 ::cppu::ComponentInstantiation aCurrentCreateFunction = 353 reinterpret_cast< ::cppu::ComponentInstantiation>(*pFunctionsAsInts); 354 355 Reference<XSingleServiceFactory> xFactory( 356 ::cppu::createSingleFactory( 357 _pServiceManager, 358 *pClasses, --- 35 unchanged lines hidden --- | 351 { 352 ::cppu::ComponentInstantiation aCurrentCreateFunction = 353 reinterpret_cast< ::cppu::ComponentInstantiation>(*pFunctionsAsInts); 354 355 Reference<XSingleServiceFactory> xFactory( 356 ::cppu::createSingleFactory( 357 _pServiceManager, 358 *pClasses, --- 35 unchanged lines hidden --- |