From 5492a1670a5e970e9100aaa60beba585da4b5c7c Mon Sep 17 00:00:00 2001 From: "Dr Mark C. Sinclair" Date: Fri, 7 Jun 2024 11:57:51 +0100 Subject: [PATCH] chore(developer): add initGlobals() method --- developer/src/kmcmplib/tests/gtest-compiler-test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/developer/src/kmcmplib/tests/gtest-compiler-test.cpp b/developer/src/kmcmplib/tests/gtest-compiler-test.cpp index 540dc9af28..dd9abe9c6e 100644 --- a/developer/src/kmcmplib/tests/gtest-compiler-test.cpp +++ b/developer/src/kmcmplib/tests/gtest-compiler-test.cpp @@ -37,12 +37,12 @@ class CompilerTest : public testing::Test { CompilerTest() {} ~CompilerTest() override {} void SetUp() override { - kmcmp::BeginLine[BEGIN_ANSI] = -1; - kmcmp::BeginLine[BEGIN_UNICODE] = -1; - kmcmp::BeginLine[BEGIN_NEWCONTEXT] = -1; - kmcmp::BeginLine[BEGIN_POSTKEYSTROKE] = -1; + initGlobals(); } void TearDown() override { + initGlobals(); + } + void initGlobals() { msgproc = NULL; szText_stub[0] = '\0'; kmcmp::nErrors = 0;