Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3638561b
Kaydet (Commit)
3638561b
authored
Tem 29, 2012
tarafından
Arnaud Versini
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace usage of rtl/memory.h in cppu with their equivalent from string.h
Change-Id: Ia49c97ad58b21dc360a366260b62bcc6b4975dee
üst
10ada837
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
typelib.cxx
cppu/source/typelib/typelib.cxx
+1
-1
assign.hxx
cppu/source/uno/assign.hxx
+3
-1
sequence.cxx
cppu/source/uno/sequence.cxx
+11
-10
No files found.
cppu/source/typelib/typelib.cxx
Dosyayı görüntüle @
3638561b
...
...
@@ -1726,7 +1726,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
sal_Int32
nSize
=
getDescriptionSize
(
(
*
ppNewDescription
)
->
eTypeClass
);
// copy all specific data for the descriptions
::
rtl_copyMemor
y
(
memcp
y
(
pTDR
->
pType
+
1
,
*
ppNewDescription
+
1
,
nSize
-
sizeof
(
typelib_TypeDescription
)
);
...
...
cppu/source/uno/assign.hxx
Dosyayı görüntüle @
3638561b
...
...
@@ -19,6 +19,8 @@
#ifndef ASSIGN_HXX
#define ASSIGN_HXX
#include <string.h>
#include "prim.hxx"
#include "destr.hxx"
#include "constr.hxx"
...
...
@@ -128,7 +130,7 @@ inline sal_Bool _assignArray(
case
typelib_TypeClass_DOUBLE
:
for
(
i
=
0
;
i
<
nTotalElements
;
i
++
)
{
::
rtl_copyMemor
y
((
sal_Char
*
)
pDest
+
i
*
nElementSize
,
memcp
y
((
sal_Char
*
)
pDest
+
i
*
nElementSize
,
(
sal_Char
*
)
pSource
+
i
*
nElementSize
,
nElementSize
);
}
...
...
cppu/source/uno/sequence.cxx
Dosyayı görüntüle @
3638561b
...
...
@@ -17,7 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <rtl/memory.h>
#include <string.h>
#include <rtl/alloc.h>
#include <osl/diagnose.h>
#include <osl/interlck.h>
...
...
@@ -380,7 +381,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Unicode
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Unicode
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Unicode
)
*
nStartIndex
),
sizeof
(
sal_Unicode
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -391,7 +392,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Bool
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Bool
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Bool
)
*
nStartIndex
),
sizeof
(
sal_Bool
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -402,7 +403,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Int8
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Int8
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Int8
)
*
nStartIndex
),
sizeof
(
sal_Int8
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -414,7 +415,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Int16
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Int16
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Int16
)
*
nStartIndex
),
sizeof
(
sal_Int16
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -426,7 +427,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Int32
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Int32
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Int32
)
*
nStartIndex
),
sizeof
(
sal_Int32
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -438,7 +439,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Int64
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Int64
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Int64
)
*
nStartIndex
),
sizeof
(
sal_Int64
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -449,7 +450,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
float
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
float
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
float
)
*
nStartIndex
),
sizeof
(
float
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -460,7 +461,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
double
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
double
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
double
)
*
nStartIndex
),
sizeof
(
double
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
@@ -471,7 +472,7 @@ static inline bool icopyConstructFromElements(
pSeq
=
reallocSeq
(
pSeq
,
sizeof
(
sal_Int32
),
nAlloc
);
if
(
pSeq
!=
0
)
{
::
rtl_copyMemor
y
(
memcp
y
(
pSeq
->
elements
+
(
sizeof
(
sal_Int32
)
*
nStartIndex
),
(
char
*
)
pSourceElements
+
(
sizeof
(
sal_Int32
)
*
nStartIndex
),
sizeof
(
sal_Int32
)
*
(
nStopIndex
-
nStartIndex
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment