Commit 4f2b1b4c authored by Milian Wolff's avatar Milian Wolff
Browse files

Fixup code: .right doesn't mutate the object.

parent 2c4eca61
......@@ -642,13 +642,13 @@ void ExpressionVisitor::findMember( AST* node, AbstractType::Ptr base, const Ide
QByteArray symbol = m_session->token_stream->symbolByteArray(token);
if (symbol.startsWith('L')) {
charType->setDataType(IntegralType::TypeWchar_t);
symbol.right(symbol.size() - 1);
symbol.remove(0, 1);
} else if (symbol.startsWith('u')) {
charType->setDataType(IntegralType::TypeChar16_t);
symbol.right(symbol.size() - 1);
symbol.remove(0, 1);
} else if (symbol.startsWith('U')) {
charType->setDataType(IntegralType::TypeChar32_t);
symbol.right(symbol.size() - 1);
symbol.remove(0, 1);
}
if (symbol.size() == 4) {
if (symbol == "'\\t'") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment