diff options
Diffstat (limited to 'Build/source/utils/asymptote/envcompleter.cc')
-rw-r--r-- | Build/source/utils/asymptote/envcompleter.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/envcompleter.cc b/Build/source/utils/asymptote/envcompleter.cc index 6c8135f0edd..9477a77f3c7 100644 --- a/Build/source/utils/asymptote/envcompleter.cc +++ b/Build/source/utils/asymptote/envcompleter.cc @@ -30,8 +30,8 @@ void envCompleter::basicCompletions(symbol_list &l, string start) { if (!basicListLoaded) loadBasicList(); - for(symbol_list::iterator p = basicList.begin(); p != basicList.end(); ++p) - if (prefix(start, **p)) + for (symbol_list::iterator p = basicList.begin(); p != basicList.end(); ++p) + if (prefix(start, *p)) l.push_back(*p); } @@ -49,9 +49,9 @@ char *envCompleter::operator () (const char *text, int state) { if (index==l.end()) return 0; else { - symbol *name=*index; + symbol name=*index; ++index; - return StrdupMalloc((string) *name); + return StrdupMalloc((string)name); } } |