diff options
Diffstat (limited to 'libutils/FileMap.cpp')
-rw-r--r-- | libutils/FileMap.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/libutils/FileMap.cpp b/libutils/FileMap.cpp index 583c6b9e4..5feb2aa76 100644 --- a/libutils/FileMap.cpp +++ b/libutils/FileMap.cpp @@ -62,11 +62,17 @@ FileMap::FileMap(void) } // Move Constructor. -FileMap::FileMap(FileMap&& other) - : mFileName(other.mFileName), mBasePtr(other.mBasePtr), mBaseLength(other.mBaseLength), - mDataOffset(other.mDataOffset), mDataPtr(other.mDataPtr), mDataLength(other.mDataLength) +FileMap::FileMap(FileMap&& other) noexcept + : mFileName(other.mFileName), + mBasePtr(other.mBasePtr), + mBaseLength(other.mBaseLength), + mDataOffset(other.mDataOffset), + mDataPtr(other.mDataPtr), + mDataLength(other.mDataLength) #if defined(__MINGW32__) - , mFileHandle(other.mFileHandle), mFileMapping(other.mFileMapping) + , + mFileHandle(other.mFileHandle), + mFileMapping(other.mFileMapping) #endif { other.mFileName = nullptr; @@ -79,7 +85,7 @@ FileMap::FileMap(FileMap&& other) } // Move assign operator. -FileMap& FileMap::operator=(FileMap&& other) { +FileMap& FileMap::operator=(FileMap&& other) noexcept { mFileName = other.mFileName; mBasePtr = other.mBasePtr; mBaseLength = other.mBaseLength; |