Add pragma once and remove noexcept attribute

This commit is contained in:
Double Sine 2019-01-15 11:02:53 +08:00
parent fd2fe40394
commit 0ae8754462
No known key found for this signature in database
GPG Key ID: 44460E4F43EA8633

View File

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