diff options
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r-- | src/plugins/glsleditor/glslautocompleter.cpp | 10 | ||||
-rw-r--r-- | src/plugins/glsleditor/glslautocompleter.h | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/glsleditor/glslautocompleter.cpp b/src/plugins/glsleditor/glslautocompleter.cpp index e0ff3df2e84..cf19c7310e8 100644 --- a/src/plugins/glsleditor/glslautocompleter.cpp +++ b/src/plugins/glsleditor/glslautocompleter.cpp @@ -55,15 +55,17 @@ bool GlslCompleter::isInComment(const QTextCursor &cursor) const } QString GlslCompleter::insertMatchingBrace(const QTextCursor &cursor, const QString &text, - QChar lookAhead, int *skippedChars) const + QChar lookAhead, bool skipChars, int *skippedChars) const { - return CPlusPlus::MatchingText::insertMatchingBrace(cursor, text, lookAhead, skippedChars); + return CPlusPlus::MatchingText::insertMatchingBrace(cursor, text, lookAhead, + skipChars, skippedChars); } QString GlslCompleter::insertMatchingQuote(const QTextCursor &cursor, const QString &text, - QChar lookAhead, int *skippedChars) const + QChar lookAhead, bool skipChars, int *skippedChars) const { - return CPlusPlus::MatchingText::insertMatchingQuote(cursor, text, lookAhead, skippedChars); + return CPlusPlus::MatchingText::insertMatchingQuote(cursor, text, lookAhead, + skipChars, skippedChars); } QString GlslCompleter::insertParagraphSeparator(const QTextCursor &cursor) const diff --git a/src/plugins/glsleditor/glslautocompleter.h b/src/plugins/glsleditor/glslautocompleter.h index 59cfd3daed5..9e193132e81 100644 --- a/src/plugins/glsleditor/glslautocompleter.h +++ b/src/plugins/glsleditor/glslautocompleter.h @@ -40,9 +40,9 @@ public: bool contextAllowsElectricCharacters(const QTextCursor &cursor) const override; bool isInComment(const QTextCursor &cursor) const override; QString insertMatchingBrace(const QTextCursor &cursor, const QString &text, - QChar lookAhead, int *skippedChars) const override; + QChar lookAhead, bool skipChars, int *skippedChars) const override; QString insertMatchingQuote(const QTextCursor &cursor, const QString &text, - QChar lookAhead, int *skippedChars) const override; + QChar lookAhead, bool skipChars, int *skippedChars) const override; QString insertParagraphSeparator(const QTextCursor &cursor) const override; }; |