Skip to content

Commit

Permalink
fix issue qith Qt6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Mar 29, 2022
1 parent f5f7e17 commit 66acaee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/qcodeedit/lib/document/qdocumentsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ int QDocumentSearch::next(bool backward, bool all, bool again, bool allowWrapAro
const QDocumentLine& l = m_cursor.line();

int coloffset = 0;
QString s = l.text();
s = l.text();

if ( bounded ) {
// update boundaries as scope is changed when changing text
Expand Down
1 change: 1 addition & 0 deletions src/qcodeedit/lib/document/qdocumentsearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class QCE_EXPORT QDocumentSearch: public QObject

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

Expand Down

0 comments on commit 66acaee

Please sign in to comment.