diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-02-23 06:38:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-23 06:38:12 +0200 |
| commit | 0a4fa10ca402c636b40124e0d1115c7b92a3d66d (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/shared/windows_error.h | |
| parent | 28714f0eb800f2170acbf29dddce1582d20d6b8b (diff) | |
| parent | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (diff) | |
Merge pull request #237 from SuperSandro2000/new_vfs_library
Revert "Applied clang-format on source"
Diffstat (limited to 'src/shared/windows_error.h')
| -rw-r--r-- | src/shared/windows_error.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/windows_error.h b/src/shared/windows_error.h index 66c512f6..03ce0abd 100644 --- a/src/shared/windows_error.h +++ b/src/shared/windows_error.h @@ -20,6 +20,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #ifndef WINDOWS_ERROR_H
#define WINDOWS_ERROR_H
+
#include <stdexcept>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -28,15 +29,14 @@ namespace MOShared { class windows_error : public std::runtime_error {
public:
- windows_error(const std::string& message, int errorcode = ::GetLastError())
- : runtime_error(constructMessage(message, errorcode)), m_ErrorCode(errorcode) {}
- int getErrorCode() const { return m_ErrorCode; }
-
+ windows_error(const std::string& message, int errorcode = ::GetLastError())
+ : runtime_error(constructMessage(message, errorcode)), m_ErrorCode(errorcode)
+ {}
+ int getErrorCode() const { return m_ErrorCode; }
private:
- std::string constructMessage(const std::string& input, int errorcode);
-
+ std::string constructMessage(const std::string& input, int errorcode);
private:
- int m_ErrorCode;
+ int m_ErrorCode;
};
} // namespace MOShared
|
