Skip to content

Commit

Permalink
scide: SyntaxHighlighter - swap QChar::toAscii() for toLatin1()
Browse files Browse the repository at this point in the history
QChar::toAscii() will be deprecated in Qt 5, and QChar::toLatin1()
is better anyway.
  • Loading branch information
jleben committed Dec 8, 2012
1 parent 6c016a1 commit ae570e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/sc-ide/widgets/code_editor/highlighter.cpp
Expand Up @@ -156,7 +156,7 @@ void SyntaxHighlighter::highlightBlockInCode(ScLexer & lexer)
{
Token token(tokenType, tokenPosition, tokenLength);
if (token.length == 1)
token.character = lexer.text()[tokenPosition].toAscii();
token.character = lexer.text()[tokenPosition].toLatin1();
blockData->tokens.push_back( token );
}

Expand Down

0 comments on commit ae570e6

Please sign in to comment.