diff options
Diffstat (limited to 'include/rtl/byteseq.h')
-rw-r--r-- | include/rtl/byteseq.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/rtl/byteseq.h b/include/rtl/byteseq.h index ef003026ab51..14b8c8cd5ac2 100644 --- a/include/rtl/byteseq.h +++ b/include/rtl/byteseq.h @@ -171,13 +171,13 @@ class SAL_WARN_UNUSED ByteSequence public: /// @cond INTERNAL // these are here to force memory de/allocation to sal lib. - inline static void * SAL_CALL operator new ( size_t nSize ) + static void * SAL_CALL operator new ( size_t nSize ) { return ::rtl_allocateMemory( nSize ); } - inline static void SAL_CALL operator delete ( void * pMem ) + static void SAL_CALL operator delete ( void * pMem ) { ::rtl_freeMemory( pMem ); } - inline static void * SAL_CALL operator new ( size_t, void * pMem ) + static void * SAL_CALL operator new ( size_t, void * pMem ) { return pMem; } - inline static void SAL_CALL operator delete ( void *, void * ) + static void SAL_CALL operator delete ( void *, void * ) {} /// @endcond @@ -243,7 +243,7 @@ public: @return length of sequence */ - inline sal_Int32 SAL_CALL getLength() const + sal_Int32 SAL_CALL getLength() const { return _pSequence->nElements; } /** Gets a pointer to byte array for READING. If the sequence has a length of 0, then the @@ -251,7 +251,7 @@ public: @return pointer to byte array */ - inline const sal_Int8 * SAL_CALL getConstArray() const + const sal_Int8 * SAL_CALL getConstArray() const { return reinterpret_cast<sal_Int8 *>(_pSequence->elements); } /** Gets a pointer to elements array for READING AND WRITING. In general if the sequence has a handle acquired by other sequences (reference count > 1), then a new sequence is @@ -282,7 +282,7 @@ public: @param nIndex index @return const C++ reference to byte at element of index nIndex */ - inline const sal_Int8 & SAL_CALL operator [] ( sal_Int32 nIndex ) const + const sal_Int8 & SAL_CALL operator [] ( sal_Int32 nIndex ) const { return getConstArray()[ nIndex ]; } /** Equality operator: Compares two sequences. @@ -310,13 +310,13 @@ public: @return UNacquired handle of the sequence */ - inline sal_Sequence * SAL_CALL getHandle() const + sal_Sequence * SAL_CALL getHandle() const { return _pSequence; } /** Returns the UNnacquired C handle of the sequence (for compatibility reasons) @return UNacquired handle of the sequence */ - inline sal_Sequence * SAL_CALL get() const + sal_Sequence * SAL_CALL get() const { return _pSequence; } }; |