Add pragma once and remove noexcept attribute
This commit is contained in:
parent
fd2fe40394
commit
0ae8754462
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "Exceptions.hpp"
|
||||
#include "ResourceGuardWin32.hpp"
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#if defined(UNICODE) || defined(_UNICODE)
|
||||
using String = std::wstring;
|
||||
@ -9,7 +9,6 @@ using String = std::wstring;
|
||||
using String = std::string;
|
||||
#endif
|
||||
|
||||
|
||||
class FileMapper {
|
||||
private:
|
||||
ResourceGuard<FileHandleTraits> _FileHandle;
|
||||
@ -35,7 +34,7 @@ public:
|
||||
return reinterpret_cast<_Type*>(_FileView.GetHandle());
|
||||
}
|
||||
|
||||
void MapFile(const String& FileName) noexcept {
|
||||
void MapFile(const String& FileName) {
|
||||
ResourceGuard<FileHandleTraits> TempFileHandle;
|
||||
ResourceGuard<GenericHandleTraits> TempFileMapHandle;
|
||||
ResourceGuard<MapViewTraits> TempFileView;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user