Move static inline void on one line in nsHtml5ArrayCopy.h

This commit is contained in:
Henri Sivonen 2009-06-21 15:46:29 +03:00
parent 88849d1f27
commit fe65dfaaf9

View File

@ -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*));