diff --git a/uppsrc/CppBase/Qualify.cpp b/uppsrc/CppBase/Qualify.cpp index 900b87a0d..9f805ff6d 100644 --- a/uppsrc/CppBase/Qualify.cpp +++ b/uppsrc/CppBase/Qualify.cpp @@ -184,6 +184,8 @@ String QualifyIds(ScopeInfo& nf, const String& k, const String& usings, bool all String Qualify(const CppBase& base, const String& scope, const String& type, const String& usings) { + if(type.StartsWith("::")) + return type.Mid(2); ScopeInfo nf(base, scope); return QualifyIds(nf, type, usings, true); } diff --git a/uppsrc/ide/Assist.cpp b/uppsrc/ide/Assist.cpp index 5c4845f45..817b30159 100644 --- a/uppsrc/ide/Assist.cpp +++ b/uppsrc/ide/Assist.cpp @@ -489,6 +489,8 @@ void AssistEditor::Assist() String tp; Vector xp = ReadBack(q, parser.local.GetIndex()); bool isok = false; + if(xp.GetCount() && xp[0].StartsWith("::")) // ::Foo(). + xp[0] = xp[0].Mid(2); for(int i = 0; i < xp.GetCount(); i++) if(iscib(*xp[i])) { isok = true;