summaryrefslogtreecommitdiff
path: root/src/shared/windows_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/windows_error.h')
-rw-r--r--src/shared/windows_error.h14
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