diff options
Diffstat (limited to 'src/shared/windows_error.cpp')
| -rw-r--r-- | src/shared/windows_error.cpp | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/src/shared/windows_error.cpp b/src/shared/windows_error.cpp index ad91db44..647a5bfb 100644 --- a/src/shared/windows_error.cpp +++ b/src/shared/windows_error.cpp @@ -1,25 +1,27 @@ -/* -Copyright (C) 2012 Sebastian Herbord. All rights reserved. - -This file is part of Mod Organizer. - -Mod Organizer is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -Mod Organizer is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. -*/ - +/*
+Copyright (C) 2012 Sebastian Herbord. All rights reserved.
+
+This file is part of Mod Organizer.
+
+Mod Organizer is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Mod Organizer is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "windows_error.h"
#include <sstream>
+namespace MOShared {
+
std::string windows_error::constructMessage(const std::string& input, int inErrorCode)
{
std::ostringstream finalMessage;
@@ -43,3 +45,5 @@ std::string windows_error::constructMessage(const std::string& input, int inErro ::SetLastError(errorCode); // restore error code because FormatMessage might have modified it
return finalMessage.str();
}
+
+} // namespace MOShared
|
