Code refactor

Signed-off-by: semenov_gv <GermanAizek@yandex.ru>
This commit is contained in:
Семенов 2022-02-03 19:17:34 +03:00 committed by semenov_gv
parent ceca812c23
commit eb577b1a0c
9 changed files with 15 additions and 14 deletions

View file

@ -366,7 +366,7 @@ ScriptEngineEvalWrapper(PGUEST_REGS GuestRegs,
* @return BOOLEAN whether the test was successful or not
*/
BOOLEAN
ScriptAutomaticStatementsTestWrapper(string Expr, UINT64 ExpectationValue, BOOLEAN ExceptError)
ScriptAutomaticStatementsTestWrapper(const string & Expr, UINT64 ExpectationValue, BOOLEAN ExceptError)
{
//
// Set the global variable indicator of test_statement to 0
@ -400,7 +400,7 @@ ScriptAutomaticStatementsTestWrapper(string Expr, UINT64 ExpectationValue, BOOLE
* @return VOID
*/
VOID
ScriptEngineWrapperTestParser(string Expr)
ScriptEngineWrapperTestParser(const string & Expr)
{
typedef struct _TEST_STRUCT
{
@ -453,7 +453,7 @@ ScriptEngineWrapperTestParser(string Expr)
* @return UINT64
*/
UINT64
ScriptEngineEvalUInt64StyleExpressionWrapper(string Expr, PBOOLEAN HasError)
ScriptEngineEvalUInt64StyleExpressionWrapper(const string & Expr, PBOOLEAN HasError)
{
//
// In VMI-mode we'll form all registers as zero