Commit a2b365c0 authored by Aleksey R.'s avatar Aleksey R.
Browse files

fix: changeDebugOptions don't change the input parameters

parent 8dce2bc9
...@@ -39,7 +39,7 @@ std::wstring debugCommand(const std::wstring &command, bool suppressOutput=false ...@@ -39,7 +39,7 @@ std::wstring debugCommand(const std::wstring &command, bool suppressOutput=false
NumVariant evaluate( const std::wstring &expression, bool cplusplus=false ); NumVariant evaluate( const std::wstring &expression, bool cplusplus=false );
DebugOptionsSet getDebugOptions(); DebugOptionsSet getDebugOptions();
void changeDebugOptions(DebugOptionsSet &addOptions, DebugOptionsSet &removeOptions); void changeDebugOptions(const DebugOptionsSet &addOptions, const DebugOptionsSet &removeOptions);
// system properties // system properties
size_t ptrSize(); size_t ptrSize();
......
...@@ -168,7 +168,7 @@ DebugOptionsSet getDebugOptions() ...@@ -168,7 +168,7 @@ DebugOptionsSet getDebugOptions()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
void changeDebugOptions(DebugOptionsSet &addOptions, DebugOptionsSet &removeOptions) void changeDebugOptions(const DebugOptionsSet &addOptions, const DebugOptionsSet &removeOptions)
{ {
HRESULT hres = g_dbgMgr->control->AddEngineOptions(static_cast<ULONG>(addOptions) ); HRESULT hres = g_dbgMgr->control->AddEngineOptions(static_cast<ULONG>(addOptions) );
if (FAILED(hres)) if (FAILED(hres))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment