Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
5df7b967
Commit
5df7b967
authored
Sep 18, 2009
by
Roberto Raggi
Browse files
Renamed maybeOverrideCharacter()
parent
81cac3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/MatchingText.cpp
View file @
5df7b967
...
...
@@ -38,7 +38,7 @@ using namespace CPlusPlus;
enum
{
MAX_NUM_LINES
=
20
};
static
bool
maybe
OverrideChar
(
const
QChar
&
ch
)
static
bool
should
OverrideChar
(
const
QChar
&
ch
)
{
switch
(
ch
.
unicode
())
{
case
')'
:
case
']'
:
case
';'
:
case
'"'
:
case
'\''
:
...
...
@@ -109,7 +109,7 @@ QString MatchingText::insertMatchingBrace(const QTextCursor &cursor, const QStri
if
(
ch1
!=
ch2
)
break
;
else
if
(
!
maybe
OverrideChar
(
ch1
))
else
if
(
!
should
OverrideChar
(
ch1
))
break
;
++*
skippedChars
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment