[FarGroup/FarManager] master: Fix build (fe911f777)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Oct 3, 2022, 7:45:49 PM10/3/22
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/fe911f7772e2149bc07e21ef5abb9d99f4d4793d

>---------------------------------------------------------------

commit fe911f7772e2149bc07e21ef5abb9d99f4d4793d
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Tue Oct 4 00:41:03 2022 +0100

Fix build


>---------------------------------------------------------------

fe911f7772e2149bc07e21ef5abb9d99f4d4793d
far/RegExp.cpp | 1 -
far/stddlg.cpp | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/far/RegExp.cpp b/far/RegExp.cpp
index 3d94947bf..b6ad9be59 100644
--- a/far/RegExp.cpp
+++ b/far/RegExp.cpp
@@ -862,7 +862,6 @@ void RegExp::InnerCompile(const wchar_t* const start, const wchar_t* src, int sr
code[0].op=opOpenBracket;
code[0].bracket.index = 0;
named_regex_match NamedMatch;
- RegExpMatch Match{};
int pos=1;
brackets[0]=code.data();
#ifdef RE_DEBUG
diff --git a/far/stddlg.cpp b/far/stddlg.cpp
index 9f3442cf8..4ef724ad3 100644
--- a/far/stddlg.cpp
+++ b/far/stddlg.cpp
@@ -1085,7 +1085,7 @@ void regex_playground()
for (const auto& [i, Index] : enumerate(Match))
{
ListStrings.emplace_back(format(FSTR(L"${}: {}"sv), Index, match_str(i)));
- ListItems.emplace_back(i.start < 0? LIF_GRAYED : LIF_NONE, ListStrings.back().c_str(), 0, 0);
+ ListItems.push_back({ i.start < 0? LIF_GRAYED : LIF_NONE, ListStrings.back().c_str(), 0, 0 });
}

for (const auto& [k, v] : NamedMatch.Matches)


Reply all
Reply to author
Forward
0 new messages