mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Move static inline void on one line in nsHtml5ArrayCopy.h
This commit is contained in:
parent
88849d1f27
commit
fe65dfaaf9
@ -49,49 +49,37 @@ class nsHtml5AttributeName;
|
|||||||
|
|
||||||
class nsHtml5ArrayCopy {
|
class nsHtml5ArrayCopy {
|
||||||
public:
|
public:
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(PRUnichar* source, PRInt32 sourceOffset, PRUnichar* target, PRInt32 targetOffset, PRInt32 length)
|
arraycopy(PRUnichar* source, PRInt32 sourceOffset, PRUnichar* target, PRInt32 targetOffset, PRInt32 length)
|
||||||
{
|
{
|
||||||
memcpy(&(target[targetOffset]), &(source[sourceOffset]), length * sizeof(PRUnichar));
|
memcpy(&(target[targetOffset]), &(source[sourceOffset]), length * sizeof(PRUnichar));
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(PRUnichar* source, PRUnichar* target, PRInt32 length)
|
arraycopy(PRUnichar* source, PRUnichar* target, PRInt32 length)
|
||||||
{
|
{
|
||||||
memcpy(target, source, length * sizeof(PRUnichar));
|
memcpy(target, source, length * sizeof(PRUnichar));
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(nsString** source, nsString** target, PRInt32 length)
|
arraycopy(nsString** source, nsString** target, PRInt32 length)
|
||||||
{
|
{
|
||||||
memcpy(target, source, length * sizeof(nsString*));
|
memcpy(target, source, length * sizeof(nsString*));
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(nsHtml5AttributeName** source, nsHtml5AttributeName** target, PRInt32 length)
|
arraycopy(nsHtml5AttributeName** source, nsHtml5AttributeName** target, PRInt32 length)
|
||||||
{
|
{
|
||||||
memcpy(target, source, length * sizeof(nsHtml5AttributeName*));
|
memcpy(target, source, length * sizeof(nsHtml5AttributeName*));
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(nsHtml5StackNode** source, nsHtml5StackNode** target, PRInt32 length)
|
arraycopy(nsHtml5StackNode** source, nsHtml5StackNode** target, PRInt32 length)
|
||||||
{
|
{
|
||||||
memcpy(target, source, length * sizeof(nsHtml5StackNode*));
|
memcpy(target, source, length * sizeof(nsHtml5StackNode*));
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static inline void
|
||||||
inline
|
|
||||||
void
|
|
||||||
arraycopy(nsHtml5StackNode** arr, PRInt32 sourceOffset, PRInt32 targetOffset, PRInt32 length)
|
arraycopy(nsHtml5StackNode** arr, PRInt32 sourceOffset, PRInt32 targetOffset, PRInt32 length)
|
||||||
{
|
{
|
||||||
memmove(&(arr[targetOffset]), &(arr[sourceOffset]), length * sizeof(nsHtml5StackNode*));
|
memmove(&(arr[targetOffset]), &(arr[sourceOffset]), length * sizeof(nsHtml5StackNode*));
|
||||||
|
Loading…
Reference in New Issue
Block a user