input: remove unnecessary pointer since const exists in parameter.
This commit is contained in:
parent
327490a8ed
commit
5c4e6945dc
|
@ -196,7 +196,7 @@ class EmuShared : public Mutex
|
|||
// * Debugging flag Accessors
|
||||
// ******************************************************************
|
||||
void GetDebuggingFlag(bool *value) { Lock(); *value = m_bDebugging; Unlock(); }
|
||||
void SetDebuggingFlag(const bool *value) { Lock(); m_bDebugging = *value; Unlock(); }
|
||||
void SetDebuggingFlag(const bool value) { Lock(); m_bDebugging = value; Unlock(); }
|
||||
#ifndef CXBX_LOADER // Temporary usage for cxbx.exe's emu
|
||||
// ******************************************************************
|
||||
// * Previous Memory Layout value Accessors
|
||||
|
@ -246,7 +246,7 @@ class EmuShared : public Mutex
|
|||
// * ClipCursor flag Accessors
|
||||
// ******************************************************************
|
||||
void GetClipCursorFlag(bool *value) { Lock(); *value = m_bClipCursor; Unlock(); }
|
||||
void SetClipCursorFlag(const bool *value) { Lock(); m_bClipCursor = *value; Unlock(); }
|
||||
void SetClipCursorFlag(const bool value) { Lock(); m_bClipCursor = value; Unlock(); }
|
||||
|
||||
// ******************************************************************
|
||||
// * Reset specific variables to default for kernel mode.
|
||||
|
|
|
@ -1966,7 +1966,7 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
|
|||
else if (wParam == VK_F3)
|
||||
{
|
||||
g_bClipCursor = !g_bClipCursor;
|
||||
g_EmuShared->SetClipCursorFlag(&g_bClipCursor);
|
||||
g_EmuShared->SetClipCursorFlag(g_bClipCursor);
|
||||
|
||||
if (g_bClipCursor) {
|
||||
CxbxClipCursor(hWnd);
|
||||
|
|
|
@ -2330,7 +2330,7 @@ void WndMain::StartEmulation(HWND hwndParent, DebuggerState LocalDebuggerState /
|
|||
}
|
||||
|
||||
bool AttachLocalDebugger = (LocalDebuggerState == debuggerOn);
|
||||
g_EmuShared->SetDebuggingFlag(&AttachLocalDebugger);
|
||||
g_EmuShared->SetDebuggingFlag(AttachLocalDebugger);
|
||||
|
||||
/* Main process to generate emulation command line begin. */
|
||||
// If we are adding more arguments, this is the place to do so.
|
||||
|
|
Loading…
Reference in New Issue