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:
Noel Grandin
2022-05-03 09:12:32 +02:00
parent 0a6d946694
commit ddef1e2c01
57 changed files with 162 additions and 130 deletions
+2 -1
View File
@@ -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(
+2 -1
View File
@@ -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 ),