diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-28 22:48:28 +0200 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-29 15:01:55 +0200 |
commit | 04710a69122d383071520ae3d39664a5edb80520 (patch) | |
tree | dc45d9ad292f7cde48f6fdee27a77fe9d49070ec /sd | |
parent | 4be123fed2b8d7e10bb98cd753e3b5cbc1d7293a (diff) |
Replace usage of rtl/memory.h in sd with their equivalent from string.h
Change-Id: I79ab2e420783b06b3cba627795a108addb5a2e8b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptexanimations.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/Pane.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/ViewShellWrapper.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/DrawController.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopback.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/view/ViewTabBar.cxx | 2 |
11 files changed, 12 insertions, 17 deletions
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx index a2edb89f6a0a..736a59596ea6 100644 --- a/sd/source/filter/eppt/pptexanimations.cxx +++ b/sd/source/filter/eppt/pptexanimations.cxx @@ -64,7 +64,6 @@ #include <com/sun/star/container/XChild.hpp> #include <comphelper/processfactory.hxx> #include <rtl/ustrbuf.hxx> -#include <rtl/memory.h> #include <vcl/vclenum.hxx> #include <svx/svdotext.hxx> @@ -553,7 +552,7 @@ void AnimationExporter::exportNode( SvStream& rStrm, Reference< XAnimationNode > { EscherExAtom aAnimNodeExAtom( rStrm, DFF_msofbtAnimNode ); AnimationNode aAnim; - rtl_zeroMemory( &aAnim, sizeof( aAnim ) ); + memset( &aAnim, 0, sizeof( aAnim ) ); aAnim.mnGroupType = mso_Anim_GroupType_PAR; aAnim.mnNodeType = 1; // attribute Restart @@ -799,7 +798,7 @@ void AnimationExporter::exportAnimNode( SvStream& rStrm, const Reference< XAnima { EscherExAtom aAnimNodeExAtom( rStrm, DFF_msofbtAnimNode ); AnimationNode aAnim; - rtl_zeroMemory( &aAnim, sizeof( aAnim ) ); + memset( &aAnim, 0, sizeof( aAnim ) ); // attribute Restart switch( xNode->getRestart() ) @@ -889,7 +888,7 @@ void AnimationExporter::exportAnimNode( SvStream& rStrm, const Reference< XAnima void AnimationExporter::GetUserData( const Sequence< NamedValue >& rUserData, const Any ** pAny, sal_Size nLen ) { // storing user data into pAny, to allow direct access later - rtl_zeroMemory( pAny, nLen ); + memset( pAny, 0, nLen ); if ( rUserData.getLength() ) { const NamedValue* p = rUserData.getConstArray(); diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index fe168f7f73bf..353709c35d54 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -758,7 +758,7 @@ sal_Int64 SAL_CALL SdTransferable::getSomething( const ::com::sun::star::uno::Se sal_Int64 nRet; if( ( rId.getLength() == 16 ) && - ( 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ) + ( 0 == memcmp( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ) { nRet = sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); } diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 0aea780a367d..4c3808769d50 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -166,7 +166,7 @@ sal_Int64 SAL_CALL SdPageObjsTLB::SdPageObjsTransferable::getSomething( const :: sal_Int64 nRet; if( ( rId.getLength() == 16 ) && - ( 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ) + ( 0 == memcmp( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) ) { nRet = (sal_Int64)(sal_IntPtr)this; } diff --git a/sd/source/ui/framework/factories/Pane.cxx b/sd/source/ui/framework/factories/Pane.cxx index 6ae18d03d0e6..cf29d16ea54d 100644 --- a/sd/source/ui/framework/factories/Pane.cxx +++ b/sd/source/ui/framework/factories/Pane.cxx @@ -210,7 +210,7 @@ sal_Int64 SAL_CALL Pane::getSomething (const Sequence<sal_Int8>& rId) sal_Int64 nResult = 0; if (rId.getLength() == 16 - && rtl_compareMemory(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) + && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) { nResult = reinterpret_cast<sal_Int64>(this); } diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx index c66be3c359a7..1108ffe23c58 100644 --- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx +++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx @@ -195,7 +195,7 @@ sal_Int64 SAL_CALL ViewShellWrapper::getSomething (const Sequence<sal_Int8>& rId sal_Int64 nResult = 0; if (rId.getLength() == 16 - && rtl_compareMemory(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) + && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) { nResult = reinterpret_cast<sal_Int64>(this); } diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index 6e485819e638..48d9318a4935 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -621,7 +621,7 @@ sal_Int64 SAL_CALL DrawController::getSomething (const Sequence<sal_Int8>& rId) sal_Int64 nResult = 0; if (rId.getLength() == 16 - && rtl_compareMemory(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) + && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) { nResult = sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); } diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 1ddca549e0d7..264fdec356eb 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -42,7 +42,6 @@ #include <comphelper/servicehelper.hxx> #include <comphelper/serviceinfohelper.hxx> -#include <rtl/memory.h> #include <editeng/unofield.hxx> #include <unomodel.hxx> #include <sfx2/dispatch.hxx> @@ -331,10 +330,10 @@ sal_Int64 SAL_CALL SdXImpressDocument::getSomething( const ::com::sun::star::uno { if( rIdentifier.getLength() == 16 ) { - if( (0 == rtl_compareMemory( SdXImpressDocument::getUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 )) ) + if( (0 == memcmp( SdXImpressDocument::getUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 )) ) return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); - if( (0 == rtl_compareMemory( SdrModel::getUnoTunnelImplementationId().getConstArray(), rIdentifier.getConstArray(), 16 )) ) + if( (0 == memcmp( SdrModel::getUnoTunnelImplementationId().getConstArray(), rIdentifier.getConstArray(), 16 )) ) return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(mpDoc)); } diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index f9c06690eab1..fcdae15a7cda 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -59,7 +59,6 @@ #include <svx/svdorect.hxx> #include <osl/mutex.hxx> #include <svl/style.hxx> -#include <rtl/memory.h> #include <comphelper/serviceinfohelper.hxx> #include <comphelper/extract.hxx> @@ -348,7 +347,7 @@ const ::com::sun::star::uno::Sequence< sal_Int8 > & SdGenericDrawPage::getUnoTun sal_Int64 SAL_CALL SdGenericDrawPage::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException) { - if( rId.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), + if( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) { return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); diff --git a/sd/source/ui/unoidl/unopback.cxx b/sd/source/ui/unoidl/unopback.cxx index 02654d0fd4f1..040e9b832c57 100644 --- a/sd/source/ui/unoidl/unopback.cxx +++ b/sd/source/ui/unoidl/unopback.cxx @@ -32,7 +32,6 @@ #include <svl/itemset.hxx> #include <svx/svdpool.hxx> #include <comphelper/extract.hxx> -#include <rtl/memory.h> #include <svx/xflbstit.hxx> #include <svx/xflbmtit.hxx> #include <svx/svdobj.hxx> diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index f9f77d153ff6..0dd1219ffc9c 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -35,7 +35,6 @@ #include <editeng/unotext.hxx> #include <comphelper/extract.hxx> -#include <rtl/memory.h> #include "unohelp.hxx" #include "unoprnms.hxx" diff --git a/sd/source/ui/view/ViewTabBar.cxx b/sd/source/ui/view/ViewTabBar.cxx index 99521a69625f..be29215abda9 100644 --- a/sd/source/ui/view/ViewTabBar.cxx +++ b/sd/source/ui/view/ViewTabBar.cxx @@ -408,7 +408,7 @@ sal_Int64 SAL_CALL ViewTabBar::getSomething (const Sequence<sal_Int8>& rId) sal_Int64 nResult = 0; if (rId.getLength() == 16 - && rtl_compareMemory(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) + && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0) { nResult = reinterpret_cast<sal_Int64>(this); } |