add o3tl::equalsAscii
Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <string_view>
|
||||
|
||||
#include <o3tl/any.hxx>
|
||||
#include <o3tl/string_view.hxx>
|
||||
#include <osl/diagnose.h>
|
||||
#include <osl/diagnose.hxx>
|
||||
#include <sal/types.h>
|
||||
@@ -1313,7 +1314,7 @@ SAL_DLLPUBLIC_EXPORT void * component_getFactory(
|
||||
{
|
||||
void * pRet = nullptr;
|
||||
|
||||
if (pServiceManager && OUString(IMPLNAME).equalsAscii(pImplName))
|
||||
if (pServiceManager && o3tl::equalsAscii(IMPLNAME, pImplName))
|
||||
{
|
||||
Reference< XInterface > xFactory(
|
||||
createSingleComponentFactory(
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include <cppu/unotype.hxx>
|
||||
#include <o3tl/string_view.hxx>
|
||||
#include <osl/diagnose.h>
|
||||
#include <osl/diagnose.hxx>
|
||||
#include <osl/thread.hxx>
|
||||
@@ -1197,7 +1198,7 @@ SAL_DLLPUBLIC_EXPORT void * component_getFactory(
|
||||
{
|
||||
void * pRet = nullptr;
|
||||
|
||||
if (pServiceManager && OUString(IMPLNAME).equalsAscii(pImplName))
|
||||
if (pServiceManager && o3tl::equalsAscii(IMPLNAME, pImplName))
|
||||
{
|
||||
Reference< XSingleServiceFactory > xFactory( createSingleFactory(
|
||||
static_cast< XMultiServiceFactory * >( pServiceManager ),
|
||||
|
||||
Reference in New Issue
Block a user