diff options
author | Peng Wenhao <pengwenhao@uniontech.com> | 2021-03-12 17:55:22 +0800 |
---|---|---|
committer | Peng Wenhao <pengwenhao@uniontech.com> | 2021-03-13 20:47:50 +0800 |
commit | faa6f19b2ae498b0fb74eb6ac25504db4bfd26c0 (patch) | |
tree | a1db03906912c4651b10a5d291461a899ff6b70c | |
parent | b0680cf5b105cac7535351928d31ac751ccb7131 (diff) |
make qmljsDebugargumentsstring() and forceOpen() const
Guessing the const specifier was accidentally forgotten
Signed-off-by: Peng Wenhao <pengwenhao@uniontech.com>
Change-Id: I611acc8d67d3eb101df9c8d816dd5779241a79f8
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r-- | src/corelib/kernel/qcoreapplication_p.h | 2 | ||||
-rw-r--r-- | src/gui/painting/qstroker_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qcoreapplication_p.h b/src/corelib/kernel/qcoreapplication_p.h index 7b60ef5698..a888c4310f 100644 --- a/src/corelib/kernel/qcoreapplication_p.h +++ b/src/corelib/kernel/qcoreapplication_p.h @@ -198,7 +198,7 @@ public: void processCommandLineArguments(); QString qmljs_debug_arguments; // a string containing arguments for js/qml debugging. - inline QString qmljsDebugArgumentsString() { return qmljs_debug_arguments; } + inline QString qmljsDebugArgumentsString() const { return qmljs_debug_arguments; } #ifdef QT_NO_QOBJECT QCoreApplication *q_ptr; diff --git a/src/gui/painting/qstroker_p.h b/src/gui/painting/qstroker_p.h index 28b55f8431..eb0e5d7ffa 100644 --- a/src/gui/painting/qstroker_p.h +++ b/src/gui/painting/qstroker_p.h @@ -228,7 +228,7 @@ public: qfixed miterLimit() const { return m_miterLimit; } void setForceOpen(bool state) { m_forceOpen = state; } - bool forceOpen() { return m_forceOpen; } + bool forceOpen() const { return m_forceOpen; } void joinPoints(qfixed x, qfixed y, const QLineF &nextLine, LineJoinMode join); inline void emitMoveTo(qfixed x, qfixed y); |