diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-01-13 20:12:45 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-14 19:45:12 +0100 |
| commit | 973d506288c8868a086a7fd62603773701abf4f4 (patch) | |
| tree | 885194d46caaf5ba4b5f2545f4972202dcabcdb0 /apt-pkg/cachefilter-patterns.h | |
| parent | a356af349cc04b649bc4635c26ff81e3d7c7ade5 (diff) | |
BaseRegexMatcher: Use std::optional [ABI]
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
| -rw-r--r-- | apt-pkg/cachefilter-patterns.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cassert> #include <iostream> #include <memory> +#include <optional> #include <sstream> #include <string> #include <vector> @@ -147,7 +148,7 @@ using namespace APT::CacheFilter; /** \brief Basic helper class for matching regex */ class BaseRegexMatcher { - regex_t *pattern; + std::optional<regex_t> pattern; public: BaseRegexMatcher(std::string const &string); |
