summaryrefslogtreecommitdiffstats
path: root/sal/rtl
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-10-01 20:52:45 +0200
committerMichael Stahl <mstahl@redhat.com>2012-10-01 21:27:51 +0000
commitd9f61e785e7469165fefc1fc8e2459ffb3335883 (patch)
tree714cc2e40cfc4c0ece895ce0353b72a94c70b419 /sal/rtl
parentfdo#55496: fix lifecycle of SwMailMergeOutputPage: (diff)
downloadcore-d9f61e785e7469165fefc1fc8e2459ffb3335883.tar.gz
core-d9f61e785e7469165fefc1fc8e2459ffb3335883.zip
Remove internal usage of rtl/memory.h in sal module
Change-Id: I43650c6f4a66058e73945851a6990555e42b8ac2 Reviewed-on: https://gerrit.libreoffice.org/744 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/byteseq.cxx3
-rw-r--r--sal/rtl/source/cipher.cxx1
-rw-r--r--sal/rtl/source/digest.cxx1
-rw-r--r--sal/rtl/source/strbuf.cxx5
-rw-r--r--sal/rtl/source/string.cxx1
-rw-r--r--sal/rtl/source/ustrbuf.cxx7
-rw-r--r--sal/rtl/source/ustring.cxx1
7 files changed, 6 insertions, 13 deletions
diff --git a/sal/rtl/source/byteseq.cxx b/sal/rtl/source/byteseq.cxx
index ee745818f0a8..8f9e400eabd4 100644
--- a/sal/rtl/source/byteseq.cxx
+++ b/sal/rtl/source/byteseq.cxx
@@ -33,7 +33,6 @@
#include <rtl/byteseq.h>
#include <rtl/alloc.h>
-#include <rtl/memory.h>
/* static data to be referenced by all empty strings
* the refCount is predefined to 1 and must never become 0 !
@@ -245,7 +244,7 @@ sal_Bool SAL_CALL rtl_byte_sequence_equals( sal_Sequence *pSequence1 , sal_Seque
return sal_False;
}
return (sal_Bool)
- (rtl_compareMemory(
+ (memcmp(
pSequence1->elements, pSequence2->elements, pSequence1->nElements )
== 0);
}
diff --git a/sal/rtl/source/cipher.cxx b/sal/rtl/source/cipher.cxx
index b5ff96291862..42dfbd58dcf5 100644
--- a/sal/rtl/source/cipher.cxx
+++ b/sal/rtl/source/cipher.cxx
@@ -30,7 +30,6 @@
#include <sal/types.h>
#include <rtl/alloc.h>
-#include <rtl/memory.h>
#include <rtl/cipher.h>
/*========================================================================
diff --git a/sal/rtl/source/digest.cxx b/sal/rtl/source/digest.cxx
index 58a179b13c2f..42b6f75e827d 100644
--- a/sal/rtl/source/digest.cxx
+++ b/sal/rtl/source/digest.cxx
@@ -32,7 +32,6 @@
#include <sal/macros.h>
#include <osl/endian.h>
#include <rtl/alloc.h>
-#include <rtl/memory.h>
#include <rtl/digest.h>
/*========================================================================
diff --git a/sal/rtl/source/strbuf.cxx b/sal/rtl/source/strbuf.cxx
index 953e6302ccc3..9dd4699f8190 100644
--- a/sal/rtl/source/strbuf.cxx
+++ b/sal/rtl/source/strbuf.cxx
@@ -30,7 +30,6 @@
#include <osl/interlck.h>
#include <rtl/strbuf.hxx>
-#include <rtl/memory.h>
/*************************************************************************
* rtl_stringbuffer_newFromStr_WithLength
@@ -125,7 +124,7 @@ void SAL_CALL rtl_stringbuffer_insert( rtl_String ** This,
/* optimized for 1 character */
pBuf[offset + len] = pBuf[offset];
else if( n > 1 )
- rtl_moveMemory( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Char) );
+ memmove( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Char) );
/* insert the new characters */
n = len;
@@ -162,7 +161,7 @@ void SAL_CALL rtl_stringbuffer_remove( rtl_String ** This,
if (nTailLen)
{
/* move the tail */
- rtl_moveMemory(pBuf + start, pBuf + start + len, nTailLen * sizeof(sal_Char));
+ memmove(pBuf + start, pBuf + start + len, nTailLen * sizeof(sal_Char));
}
(*This)->length-=len;
diff --git a/sal/rtl/source/string.cxx b/sal/rtl/source/string.cxx
index 78874b668b38..7926fa8ed7f6 100644
--- a/sal/rtl/source/string.cxx
+++ b/sal/rtl/source/string.cxx
@@ -35,7 +35,6 @@
#include <cassert>
#include <cstdlib>
-#include <rtl/memory.h>
#include <osl/interlck.h>
#include <rtl/alloc.h>
#include <osl/diagnose.h>
diff --git a/sal/rtl/source/ustrbuf.cxx b/sal/rtl/source/ustrbuf.cxx
index 23b6cb8f4e62..1bbdfe3555ce 100644
--- a/sal/rtl/source/ustrbuf.cxx
+++ b/sal/rtl/source/ustrbuf.cxx
@@ -31,7 +31,6 @@
#include <osl/interlck.h>
#include <rtl/ustrbuf.hxx>
-#include <rtl/memory.h>
#include <strimp.hxx>
void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( rtl_uString ** newStr,
@@ -142,7 +141,7 @@ void SAL_CALL rtl_uStringbuffer_insert( rtl_uString ** This,
/* optimized for 1 character */
pBuf[offset + len] = pBuf[offset];
else if( n > 1 )
- rtl_moveMemory( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Unicode) );
+ memmove( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Unicode) );
/* insert the new characters */
if( len == 1 )
@@ -197,7 +196,7 @@ void SAL_CALL rtl_uStringbuffer_insert_ascii( /*inout*/rtl_uString ** This,
/* optimized for 1 character */
pBuf[offset + len] = pBuf[offset];
else if( n > 1 )
- rtl_moveMemory( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Unicode) );
+ memmove( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Unicode) );
/* insert the new characters */
for( n = 0; n < len; n++ )
@@ -236,7 +235,7 @@ void SAL_CALL rtl_uStringbuffer_remove( rtl_uString ** This,
if (nTailLen)
{
/* move the tail */
- rtl_moveMemory(pBuf + start, pBuf + start + len, nTailLen * sizeof(sal_Unicode));
+ memmove(pBuf + start, pBuf + start + len, nTailLen * sizeof(sal_Unicode));
}
(*This)->length-=len;
diff --git a/sal/rtl/source/ustring.cxx b/sal/rtl/source/ustring.cxx
index ec0827f4e561..b21994959e62 100644
--- a/sal/rtl/source/ustring.cxx
+++ b/sal/rtl/source/ustring.cxx
@@ -35,7 +35,6 @@
#include <cassert>
#include <cstdlib>
-#include <rtl/memory.h>
#include <osl/diagnose.h>
#include <osl/interlck.h>
#include <rtl/alloc.h>