Skip to content

Commit

Permalink
xrDebug: Fix conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 16, 2016
1 parent 75c43be commit 2669d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/xrCore/xrDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ void xrDebug::GatherInfo(const char *expression, const char *description, const
os_clipboard::copy_to_clipboard(assertionInfo);
}

void xrDebug::DoExit(const std::string& message)
void xrDebug::DoExit(const std::string &message)
{
FlushLog();
MessageBox(NULL, message.c_str(), "Error", MB_OK|MB_ICONERROR|MB_SYSTEMMODAL);
TerminateProcess(GetCurrentProcess(), 1);
}

void xrDebug::Backend(const char *expression, const char *description, const char *arg0, const char *arg1,
const char *file, int line, const char *function, bool& ignoreAlways)
const char *file, int line, const char *function, bool &ignoreAlways)
{
#ifdef PROFILE_CRITICAL_SECTIONS
static Lock lock(MUTEX_PROFILE_ID(xrDebug::Backend));
Expand Down Expand Up @@ -366,7 +366,7 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)
BT_SaveSnapshot(nullptr);
}

void xrDebug::SetupExceptionHandler(const bool& dedicated)
void xrDebug::SetupExceptionHandler(const bool &dedicated)
{
BT_InstallSehFilter();
if (!dedicated && !strstr(GetCommandLine(), "-silent_error_mode"))
Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/xrDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class XRCORE_API xrDebug
static void Fatal(const char *file, int line, const char *function, const char *format, ...);
static void Backend(const char *reason, const char *expression, const char *arg0, const char *arg1,
const char *file, int line, const char *function, bool &ignoreAlways);
static void DoExit(const std::string& message);
static void DoExit(const std::string &message);

private:
static void FormatLastError(char *buffer, const size_t &bufferSize);
Expand Down

0 comments on commit 2669d99

Please sign in to comment.