Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Friedrich W. H. Kossebau
kdevelop
Commits
728321cd
Commit
728321cd
authored
Dec 21, 2019
by
Thomas Schöps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change QChar::fromLatin1 --> QLatin1Char as proposed by
@kossebau
parent
8a8d6b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/clang/duchain/builder.cpp
plugins/clang/duchain/builder.cpp
+1
-1
No files found.
plugins/clang/duchain/builder.cpp
View file @
728321cd
...
...
@@ -1417,7 +1417,7 @@ RangeInRevision rangeInRevisionForUse(CXCursor cursor, CXCursorKind referencedCu
}
else
{
// Workaround for wrong use range returned by clang for macro expansions
const
auto
contents
=
ClangUtils
::
getRawContents
(
clang_Cursor_getTranslationUnit
(
cursor
),
useRange
);
const
int
firstOpeningParen
=
contents
.
indexOf
(
Q
Char
::
from
Latin1
(
'('
));
const
int
firstOpeningParen
=
contents
.
indexOf
(
QLatin1
Char
(
'('
));
if
(
firstOpeningParen
!=
-
1
)
{
range
.
end
.
column
=
range
.
start
.
column
+
firstOpeningParen
;
range
.
end
.
line
=
range
.
start
.
line
;
...
...
Write
Preview
Markdown
is supported
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