diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-22 00:41:42 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-23 09:48:34 +0100 |
commit | 228b5dd0741512bfa3796c9388169cc12617b823 (patch) | |
tree | 4d3834c804071f19d7f512a258c65964197fb16c /src | |
parent | cce7e35253aa63191f0211b509784b1dc96d49e5 (diff) |
QStaticByteArrayMatcherBase: make dtor protected
Base class dtors should either be public and virtual or else protected
and non-virtual.
We don't want to model polymorphy, so protected and non-virtual it is.
Pick-to: 6.3
Change-Id: I3c545b01c3ec831ee8b4a0c522501222a69923e9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qbytearraymatcher.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qbytearraymatcher.h b/src/corelib/text/qbytearraymatcher.h index 7aa6226b24..4aac69f30a 100644 --- a/src/corelib/text/qbytearraymatcher.h +++ b/src/corelib/text/qbytearraymatcher.h @@ -105,7 +105,7 @@ protected: explicit constexpr QStaticByteArrayMatcherBase(const char *pattern, size_t n) noexcept : m_skiptable(generate(pattern, n)) {} // compiler-generated copy/more ctors/assignment operators are ok! - // compiler-generated dtor is ok! + ~QStaticByteArrayMatcherBase() = default; #if QT_REMOVED_SINCE(6, 3) && QT_POINTER_SIZE != 4 Q_CORE_EXPORT int indexOfIn(const char *needle, uint nlen, const char *haystack, int hlen, int from) const noexcept; |