diff options
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/byteseq.h | 4 | ||||
-rw-r--r-- | include/rtl/byteseq.hxx | 4 | ||||
-rw-r--r-- | include/rtl/ref.hxx | 2 | ||||
-rw-r--r-- | include/rtl/string.hxx | 4 | ||||
-rw-r--r-- | include/rtl/ustring.hxx | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/include/rtl/byteseq.h b/include/rtl/byteseq.h index 0ec93c066652..e47d60e83e00 100644 --- a/include/rtl/byteseq.h +++ b/include/rtl/byteseq.h @@ -190,7 +190,7 @@ public: */ inline ByteSequence( const ByteSequence & rSeq ); #if defined LIBO_INTERNAL_ONLY - inline ByteSequence( ByteSequence && rSeq ); + inline ByteSequence( ByteSequence && rSeq ) noexcept; #endif /** Copy constructor Creates a copy from the C-Handle. @@ -236,7 +236,7 @@ public: */ inline ByteSequence & SAL_CALL operator = ( const ByteSequence & rSeq ); #if defined LIBO_INTERNAL_ONLY - inline ByteSequence & SAL_CALL operator = ( ByteSequence && rSeq ); + inline ByteSequence & SAL_CALL operator = ( ByteSequence && rSeq ) noexcept; #endif /** Gets the length of sequence. diff --git a/include/rtl/byteseq.hxx b/include/rtl/byteseq.hxx index bf287830c77d..597e336e43ad 100644 --- a/include/rtl/byteseq.hxx +++ b/include/rtl/byteseq.hxx @@ -41,7 +41,7 @@ inline ByteSequence::ByteSequence( const ByteSequence & rSeq ) } #if defined LIBO_INTERNAL_ONLY -inline ByteSequence::ByteSequence( ByteSequence && rSeq ) +inline ByteSequence::ByteSequence( ByteSequence && rSeq ) noexcept : _pSequence(rSeq._pSequence) { rSeq._pSequence = nullptr; @@ -95,7 +95,7 @@ inline ByteSequence & ByteSequence::operator = ( const ByteSequence & rSeq ) } #if defined LIBO_INTERNAL_ONLY -inline ByteSequence & ByteSequence::operator = ( ByteSequence && rSeq ) +inline ByteSequence & ByteSequence::operator = ( ByteSequence && rSeq ) noexcept { ::rtl_byte_sequence_release(_pSequence); _pSequence = rSeq._pSequence; diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx index 73c03ff7657d..b0324d99313d 100644 --- a/include/rtl/ref.hxx +++ b/include/rtl/ref.hxx @@ -77,7 +77,7 @@ public: #ifdef LIBO_INTERNAL_ONLY /** Move constructor... */ - Reference (Reference<reference_type> && handle) + Reference (Reference<reference_type> && handle) noexcept : m_pBody (handle.m_pBody) { handle.m_pBody = nullptr; diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index 3b33ee4f1ae5..d06a1b727394 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -129,7 +129,7 @@ public: @param str an OString. @since LibreOffice 5.2 */ - OString( OString && str ) + OString( OString && str ) noexcept { pData = str.pData; str.pData = nullptr; @@ -313,7 +313,7 @@ public: @param str an OString. @since LibreOffice 5.2 */ - OString & operator=( OString && str ) + OString & operator=( OString && str ) noexcept { rtl_string_release( pData ); pData = str.pData; diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 8050e0af9c41..18b717fd2b04 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -158,7 +158,7 @@ public: @param str an OUString. @since LibreOffice 5.2 */ - OUString( OUString && str ) + OUString( OUString && str ) noexcept { pData = str.pData; str.pData = nullptr; @@ -462,7 +462,7 @@ public: @param str an OUString. @since LibreOffice 5.2 */ - OUString & operator=( OUString && str ) + OUString & operator=( OUString && str ) noexcept { rtl_uString_release( pData ); pData = str.pData; |