fixed theide debugger crashing and Alt+C of global functions

git-svn-id: svn://ultimatepp.org/upp/trunk@529 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-10-13 20:19:28 +00:00
commit 9c8d6a3b82
3 changed files with 8 additions and 3 deletions

View file

@ -612,6 +612,8 @@ String AssistEditor::MakeDefinition(const String& cls, const String& _n)
String id = p.ReadId();
if(p.Char('(')) {
String rp = RemoveDefPar(p.GetPtr());
if(cls.GetCount() == 0)
return NormalizeSpaces(String(beg, b) + ' ' + id + '(' + rp);
if(dest)
return NormalizeSpaces(String(beg, b) + cls + "::~" + id + '(' + rp);
else
@ -683,7 +685,10 @@ void AssistEditor::DCopy()
while(iscid(*s)) s++;
String id(b, s);
if(m.name == id) {
r << cls << "::" << m.name << s;
if(cls.GetCount())
r << cls << "::" << m.name << s;
else
r << m.name << s;
break;
}
r << id;