Skip to content

Commit 66acaee

Browse files
committed
fix issue qith Qt6.3
1 parent f5f7e17 commit 66acaee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/qcodeedit/lib/document/qdocumentsearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ int QDocumentSearch::next(bool backward, bool all, bool again, bool allowWrapAro
678678
const QDocumentLine& l = m_cursor.line();
679679

680680
int coloffset = 0;
681-
QString s = l.text();
681+
s = l.text();
682682

683683
if ( bounded ) {
684684
// update boundaries as scope is changed when changing text

src/qcodeedit/lib/document/qdocumentsearch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class QCE_EXPORT QDocumentSearch: public QObject
106106

107107
Options m_option;
108108
QString m_string;
109+
QString s; // keep string alive so that corresponding match may refer it, seems to be changed in Qt5.3
109110
QRegularExpression m_regularExpression;
110111
QRegularExpressionMatch m_match;
111112

0 commit comments

Comments
 (0)