Skip to content
GitLab
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
e02f818f
Commit
e02f818f
authored
Dec 03, 2008
by
Roberto Raggi
Browse files
Save the utf8 bytes in a QByteArray before invoking the parser.
parent
2a76e5f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/TypeOfExpression.cpp
View file @
e02f818f
...
...
@@ -91,7 +91,8 @@ Document::Ptr TypeOfExpression::documentForExpression(const QString &expression)
{
// create the expression's AST.
Document
::
Ptr
doc
=
Document
::
create
(
QLatin1String
(
"<completion>"
));
doc
->
setSource
(
expression
.
toUtf8
());
const
QByteArray
bytes
=
expression
.
toUtf8
();
doc
->
setSource
(
bytes
);
doc
->
parse
(
Document
::
ParseExpression
);
return
doc
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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