From c9545d632d0b8454ed86f79d3512f1f0f29086b4 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Mon, 28 Jan 2019 07:59:31 +0900 Subject: [PATCH] Test.cpp: Do not change the registry values while testing --- Src/Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Test.cpp b/Src/Test.cpp index f4c5e5ef7..1e3b83809 100644 --- a/Src/Test.cpp +++ b/Src/Test.cpp @@ -209,10 +209,10 @@ TEST(FileCompare, LastLineEOL) CFrameWnd *pFrame = nullptr; for (bool bIgnoreBlankLines: { true, false }) { - GetOptionsMgr()->SaveOption(OPT_CMP_IGNORE_BLANKLINES, bIgnoreBlankLines); + GetOptionsMgr()->Set(OPT_CMP_IGNORE_BLANKLINES, bIgnoreBlankLines); for (auto nIgnoreWhitespace: { WHITESPACE_COMPARE_ALL, WHITESPACE_IGNORE_CHANGE, WHITESPACE_IGNORE_ALL}) { - GetOptionsMgr()->SaveOption(OPT_CMP_IGNORE_WHITESPACE, nIgnoreWhitespace); + GetOptionsMgr()->Set(OPT_CMP_IGNORE_WHITESPACE, nIgnoreWhitespace); if (pDoc) pDoc->RefreshOptions(); for (size_t l = 0; l < std::size(filelist); ++l) -- 2.11.0