diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-09-29 14:47:11 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-10-01 18:48:05 +0000 |
commit | 36a2db3722b79ed3df075d7f3fa77fb761bcf5a4 (patch) | |
tree | 838cdec72aeea68c3ad78f8d18535afd5408d43a /toolkit | |
parent | 053b68a0c7b75eae7d86d4465f65abc6046515ee (diff) |
Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/inc/toolkit/helper/macros.hxx | 6 | ||||
-rw-r--r-- | toolkit/source/awt/vclxbitmap.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxcontainer.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxdevice.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxfont.cxx | 3 | ||||
-rw-r--r-- | toolkit/source/awt/vclxgraphics.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxmenu.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxprinter.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxregion.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/controls/stdtabcontroller.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/controls/stdtabcontrollermodel.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrol.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 1 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 1 |
16 files changed, 6 insertions, 17 deletions
diff --git a/toolkit/inc/toolkit/helper/macros.hxx b/toolkit/inc/toolkit/helper/macros.hxx index 01d5705c60f5..a8282477b3d9 100644 --- a/toolkit/inc/toolkit/helper/macros.hxx +++ b/toolkit/inc/toolkit/helper/macros.hxx @@ -29,12 +29,14 @@ #ifndef _TOOLKIT_HELPER_MACROS_HXX_ #define _TOOLKIT_HELPER_MACROS_HXX_ +#include <string.h> + #include <comphelper/servicehelper.hxx> #define IMPL_XUNOTUNNEL_MINIMAL( ClassName ) \ sal_Int64 ClassName::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException) \ { \ - if( ( rIdentifier.getLength() == 16 ) && ( 0 == rtl_compareMemory( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) \ + if( ( rIdentifier.getLength() == 16 ) && ( 0 == memcmp( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) \ { \ return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this)); \ } \ @@ -60,7 +62,7 @@ ClassName* ClassName::GetImplementation( const ::com::sun::star::uno::Reference< #define IMPL_XUNOTUNNEL2( ClassName, BaseClass ) \ sal_Int64 ClassName::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException) \ { \ - if( ( rIdentifier.getLength() == 16 ) && ( 0 == rtl_compareMemory( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) \ + if( ( rIdentifier.getLength() == 16 ) && ( 0 == memcmp( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) \ { \ return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this)); \ } \ diff --git a/toolkit/source/awt/vclxbitmap.cxx b/toolkit/source/awt/vclxbitmap.cxx index 736751ec232e..773b69a7e4a4 100644 --- a/toolkit/source/awt/vclxbitmap.cxx +++ b/toolkit/source/awt/vclxbitmap.cxx @@ -30,7 +30,6 @@ #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> #include <tools/stream.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> // ---------------------------------------------------- diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx index 1afcfabe0fb9..1ea0e4765d5c 100644 --- a/toolkit/source/awt/vclxcontainer.cxx +++ b/toolkit/source/awt/vclxcontainer.cxx @@ -30,7 +30,6 @@ #include <toolkit/helper/macros.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <vcl/svapp.hxx> diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx index e73b1f2cd13e..1cc74ae90f26 100644 --- a/toolkit/source/awt/vclxdevice.cxx +++ b/toolkit/source/awt/vclxdevice.cxx @@ -37,7 +37,6 @@ #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <vcl/svapp.hxx> diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx index 822d82246211..a44526a548b2 100644 --- a/toolkit/source/awt/vclxfont.cxx +++ b/toolkit/source/awt/vclxfont.cxx @@ -26,11 +26,12 @@ * ************************************************************************/ +#include <string.h> + #include <toolkit/awt/vclxfont.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <rtl/ustring.h> diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx index 2def418ce61f..491b2855c21b 100644 --- a/toolkit/source/awt/vclxgraphics.cxx +++ b/toolkit/source/awt/vclxgraphics.cxx @@ -32,7 +32,6 @@ #include <toolkit/helper/macros.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <vcl/svapp.hxx> diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index b12d79510ab1..7748aa675000 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -32,7 +32,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <toolkit/helper/convert.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <osl/mutex.hxx> diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index f51ee238d659..1462087cf4a2 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -29,7 +29,6 @@ #include <toolkit/awt/vclxprinter.hxx> #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx index 4d463c1ad770..079aa2fb8a20 100644 --- a/toolkit/source/awt/vclxregion.cxx +++ b/toolkit/source/awt/vclxregion.cxx @@ -31,7 +31,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <toolkit/helper/convert.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <vcl/svapp.hxx> diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index bea6a744dc86..6053de716e7c 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -53,7 +53,6 @@ #include <com/sun/star/beans/NamedValue.hpp> #include <cppuhelper/typeprovider.hxx> #include <osl/conditn.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <rtl/process.h> diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 9d7cb73078c8..9d26ffbdd98f 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -53,7 +53,6 @@ #include <toolkit/helper/property.hxx> #include <toolkit/helper/accessibilityclient.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <rtl/ustrbuf.hxx> #include <vcl/svapp.hxx> diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index fcf33553c9e4..9a88234a30de 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -34,7 +34,6 @@ #include <toolkit/awt/vclxwindow.hxx> #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <tools/debug.hxx> diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx index 344daaef67b4..982d029d93f8 100644 --- a/toolkit/source/controls/stdtabcontrollermodel.cxx +++ b/toolkit/source/controls/stdtabcontrollermodel.cxx @@ -33,7 +33,6 @@ #include <toolkit/helper/servicenames.hxx> #include <toolkit/helper/property.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <tools/debug.hxx> diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index 7d5a6ac98c68..8ad20ecac814 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -36,7 +36,6 @@ #include <toolkit/controls/unocontrol.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <osl/mutex.hxx> #include <tools/date.hxx> diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 0bdf24c195db..7e6f3c97054d 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -31,7 +31,6 @@ #include <cppuhelper/typeprovider.hxx> #include <cppuhelper/implbase1.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <toolkit/controls/unocontrolcontainer.hxx> diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index a0c0230d50ba..86df917f6c16 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -40,7 +40,6 @@ #include <toolkit/controls/unocontrolmodel.hxx> #include <toolkit/helper/macros.hxx> #include <cppuhelper/typeprovider.hxx> -#include <rtl/memory.h> #include <rtl/uuid.h> #include <tools/diagnose_ex.h> #include <tools/date.hxx> |