Skip to content

Commit 2669d99

Browse files
author
nitrocaster
committed
xrDebug: Fix conventions.
1 parent 75c43be commit 2669d99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/xrCore/xrDebug.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ void xrDebug::GatherInfo(const char *expression, const char *description, const
183183
os_clipboard::copy_to_clipboard(assertionInfo);
184184
}
185185

186-
void xrDebug::DoExit(const std::string& message)
186+
void xrDebug::DoExit(const std::string &message)
187187
{
188188
FlushLog();
189189
MessageBox(NULL, message.c_str(), "Error", MB_OK|MB_ICONERROR|MB_SYSTEMMODAL);
190190
TerminateProcess(GetCurrentProcess(), 1);
191191
}
192192

193193
void xrDebug::Backend(const char *expression, const char *description, const char *arg0, const char *arg1,
194-
const char *file, int line, const char *function, bool& ignoreAlways)
194+
const char *file, int line, const char *function, bool &ignoreAlways)
195195
{
196196
#ifdef PROFILE_CRITICAL_SECTIONS
197197
static Lock lock(MUTEX_PROFILE_ID(xrDebug::Backend));
@@ -366,7 +366,7 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)
366366
BT_SaveSnapshot(nullptr);
367367
}
368368

369-
void xrDebug::SetupExceptionHandler(const bool& dedicated)
369+
void xrDebug::SetupExceptionHandler(const bool &dedicated)
370370
{
371371
BT_InstallSehFilter();
372372
if (!dedicated && !strstr(GetCommandLine(), "-silent_error_mode"))

src/xrCore/xrDebug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class XRCORE_API xrDebug
6161
static void Fatal(const char *file, int line, const char *function, const char *format, ...);
6262
static void Backend(const char *reason, const char *expression, const char *arg0, const char *arg1,
6363
const char *file, int line, const char *function, bool &ignoreAlways);
64-
static void DoExit(const std::string& message);
64+
static void DoExit(const std::string &message);
6565

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

0 commit comments

Comments
 (0)