[PowerRename] Set RegEx engine default flags to 0 (#15865)

This commit is contained in:
Stefan Markovic 2022-02-02 17:46:22 +01:00 committed by GitHub
parent 567cc50fb7
commit ddf96e28b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#include "PowerRenameInterfaces.h"
#define DEFAULT_FLAGS MatchAllOccurences
#define DEFAULT_FLAGS 0
class CPowerRenameRegEx : public IPowerRenameRegEx
{

View File

@ -8,7 +8,7 @@
#include "TestFileHelper.h"
#include "Helpers.h"
#define DEFAULT_FLAGS MatchAllOccurences
#define DEFAULT_FLAGS 0
using namespace Microsoft::VisualStudio::CppUnitTestFramework;

View File

@ -93,7 +93,7 @@ TEST_METHOD(VerifyDefaultFlags)
Assert::IsTrue(CPowerRenameRegEx::s_CreateInstance(&renameRegEx) == S_OK);
DWORD flags = 0;
Assert::IsTrue(renameRegEx->GetFlags(&flags) == S_OK);
Assert::IsTrue(flags == MatchAllOccurences);
Assert::IsTrue(flags == 0);
}
TEST_METHOD(VerifyCaseSensitiveSearch)

View File

@ -87,7 +87,7 @@ TEST_METHOD(VerifyDefaultFlags)
Assert::IsTrue(CPowerRenameRegEx::s_CreateInstance(&renameRegEx) == S_OK);
DWORD flags = 0;
Assert::IsTrue(renameRegEx->GetFlags(&flags) == S_OK);
Assert::IsTrue(flags == MatchAllOccurences);
Assert::IsTrue(flags == 0);
}
TEST_METHOD(VerifyCaseSensitiveSearch)