summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-12-17 11:43:39 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-12-17 21:32:21 +0000
commit915da45ca0ca41dc1c85201a8fa61ccccf48ee0c (patch)
treebce02960ca1b8216b8687e6c93c3e8da45b3977a /src
parent88b611e48d7bc3588f9d3ccf8d453bef6305a08d (diff)
QRegularExpression: add missing const to PcreJitStackFree::op()
Function object's function-call operators ought to be marked as const, so do it. Found while working on reviewing the code with an eye to fix QTBUG-142551. Not picking all the way since this clearly doesn't fix a bug (the object is stowed away inside of a std::unique_ptr, which obviously doesn't care about the missing const, or this wouldn't have compiled before). Pick-to: 6.11 6.10 6.8 Change-Id: I62649504d73192519a08684701d08483dfc09f6c Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/text/qregularexpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qregularexpression.cpp b/src/corelib/text/qregularexpression.cpp
index 5cc8e8681bb..0c65e18ec10 100644
--- a/src/corelib/text/qregularexpression.cpp
+++ b/src/corelib/text/qregularexpression.cpp
@@ -952,7 +952,7 @@ void QRegularExpressionPrivate::getPatternInfo()
namespace {
struct PcreJitStackFree
{
- void operator()(pcre2_jit_stack_16 *stack)
+ void operator()(pcre2_jit_stack_16 *stack) const
{
if (stack)
pcre2_jit_stack_free_16(stack);