forked from qt-creator/qt-creator
Fixed index out of range.
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
@@ -131,6 +131,11 @@ int BackwardsScanner::previousBlockState(const QTextBlock &block) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
int BackwardsScanner::size() const
|
||||
{
|
||||
return _tokens.size();
|
||||
}
|
||||
|
||||
int BackwardsScanner::startOfMatchingBrace(int index) const
|
||||
{
|
||||
const BackwardsScanner &tk = *this;
|
||||
|
||||
@@ -69,6 +69,8 @@ public:
|
||||
|
||||
int previousBlockState(const QTextBlock &block) const;
|
||||
|
||||
int size() const;
|
||||
|
||||
private:
|
||||
const SimpleToken &fetchToken(int i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user