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 /rsc | |
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 'rsc')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index 8c72ac4c540a..63d787e4e12f 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -36,7 +36,6 @@ #include <osl/file.h> #include <rtl/alloc.h> -#include <rtl/memory.h> using ::rtl::OUString; using ::rtl::OUStringToOString; @@ -97,7 +96,7 @@ char* rsc_strdup( const char* pStr ) { int nLen = strlen( pStr ); char* pBuffer = (char*)rtl_allocateMemory( nLen+1 ); - rtl_copyMemory( pBuffer, pStr, nLen+1 ); + memcpy( pBuffer, pStr, nLen+1 ); return pBuffer; } @@ -405,7 +404,7 @@ void RscWriteRc :: PutUTF8( char * pStr ) n++; sal_uInt32 nOldLen = IncSize( n ); - rtl_copyMemory( GetPointer( nOldLen ), pStr, nStrLen ); + memcpy( GetPointer( nOldLen ), pStr, nStrLen ); // 0 terminated pMem[ nOldLen + nStrLen ] = '\0'; } |