diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-16 14:27:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-16 14:27:58 +0000 |
commit | 3d60e28ce573bfd28286d108eeb43ec29bf44d48 (patch) | |
tree | 809f1a8ef1739badd72137422324bfd9bdaeec06 /plugins/CrashDumper/src | |
parent | 376a1a5f4c37183a64aa83b0225ce9bb20c8605b (diff) |
removed not needed _MSC_VER checks
removed double comstant from modern
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@6087 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r-- | plugins/CrashDumper/src/bkstring.h | 4 | ||||
-rw-r--r-- | plugins/CrashDumper/src/exhndlr.cpp | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/plugins/CrashDumper/src/bkstring.h b/plugins/CrashDumper/src/bkstring.h index 511ce2f173..8000723225 100644 --- a/plugins/CrashDumper/src/bkstring.h +++ b/plugins/CrashDumper/src/bkstring.h @@ -27,11 +27,7 @@ public: typedef value_type* iterator;
typedef const value_type* const_iterator;
-#if defined(_MSC_VER) && _MSC_VER > 1200
static const size_type npos = size_type(-1);
-#else
- enum { npos = -1 };
-#endif
private:
value_type* buf;
diff --git a/plugins/CrashDumper/src/exhndlr.cpp b/plugins/CrashDumper/src/exhndlr.cpp index f39e955e64..cee6cb283c 100644 --- a/plugins/CrashDumper/src/exhndlr.cpp +++ b/plugins/CrashDumper/src/exhndlr.cpp @@ -32,13 +32,7 @@ void RemoveExceptionHandler(void) void UnloadDbgHlp(void)
{
-#ifdef _MSC_VER
-#if _MSC_VER > 1200
__FUnloadDelayLoadedDLL2("dbghelp.dll");
-#else
- __FUnloadDelayLoadedDLL("dbghelp.dll");
-#endif
-#endif
}
int myDebugFilter(unsigned int code, PEXCEPTION_POINTERS ep)
@@ -163,7 +157,6 @@ DWORD MirandaThreadFilter(DWORD code, EXCEPTION_POINTERS* info) return threadfltr(code, info);
}
-#if _MSC_VER >= 1400
void InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, UINT_PTR)
{
EXCEPTION_RECORD ExceptionRecord = {0};
@@ -191,13 +184,10 @@ void InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, uns myfilterWorker(&info, true);
}
-#endif
void InitExceptionHandler(void)
{
-#if _MSC_VER >= 1400
_set_invalid_parameter_handler(InvalidParameterHandler);
-#endif
threadfltr = Miranda_SetExceptFilter(MirandaThreadFilter);
SetExceptionHandler();
}
|