From 973d506288c8868a086a7fd62603773701abf4f4 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 13 Jan 2025 20:12:45 +0100 Subject: BaseRegexMatcher: Use std::optional [ABI] --- apt-pkg/cachefilter-patterns.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-pkg/cachefilter-patterns.h') diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h index 1714bbb62..660e52e82 100644 --- a/apt-pkg/cachefilter-patterns.h +++ b/apt-pkg/cachefilter-patterns.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -147,7 +148,7 @@ using namespace APT::CacheFilter; /** \brief Basic helper class for matching regex */ class BaseRegexMatcher { - regex_t *pattern; + std::optional pattern; public: BaseRegexMatcher(std::string const &string); -- cgit v1.2.3-70-g09d2