Skip to content

Commit 2569536

Browse files
authored
regex-replace: remove unused default c'tor (#43979)
Commit Message: regex-replace: remove unused default c'tor Additional Description: Minor change - removing the default c'tor of RegexReplace that wasn't used. This c'tor doesn't initialize 'regex_' and may cause a nullptr deref if 'apply()' is invoked. Risk Level: low - not being used. Testing: N/A Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Adi Suissa-Peleg <adip@google.com>
1 parent 7f86810 commit 2569536

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

source/common/matcher/regex_replace.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace Matcher {
1111

1212
class RegexReplace {
1313
public:
14-
RegexReplace() = default;
1514
RegexReplace(Regex::CompiledMatcherPtr regex, std::string&& substitution)
1615
: regex_(std::move(regex)), substitution_(std::move(substitution)) {}
1716

0 commit comments

Comments
 (0)