forked from qt-creator/qt-creator
Version control: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I85c007045efdb207f397b42fbce7a554ac9c9819 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
cdae5f2102
commit
e2ace515e2
@@ -510,14 +510,14 @@ void VcsBaseSubmitEditor::setFileModel(QAbstractItemModel *m, const QString &rep
|
||||
if ((sym->isClass() || sym->isFunction() || sym->isNamespace())
|
||||
&& (symId != 0 && acceptsWordForCompletion(symId->chars())))
|
||||
{
|
||||
uniqueSymbols.insert(symId->chars());
|
||||
uniqueSymbols.insert(QString::fromUtf8(symId->chars()));
|
||||
}
|
||||
|
||||
// Handle specific case : get "Foo" in "void Foo::function() {}"
|
||||
if (sym->isFunction() && !sym->asFunction()->isDeclaration()) {
|
||||
const char *className = belongingClassName(sym->asFunction());
|
||||
if (acceptsWordForCompletion(className))
|
||||
uniqueSymbols.insert(className);
|
||||
uniqueSymbols.insert(QString::fromUtf8(className));
|
||||
}
|
||||
|
||||
++symPtr;
|
||||
|
||||
Reference in New Issue
Block a user