Fixed issue with CoWork & callback

git-svn-id: svn://ultimatepp.org/upp/trunk@9763 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-02 14:37:08 +00:00
parent aadcb59f58
commit f7579e876c
2 changed files with 1 additions and 2 deletions

View file

@ -46,7 +46,7 @@ public:
public:
void Do(Function<void ()>&& fn);
void Do(const Callback& cb) { Do(clone(cb)); }
void Do(const Callback& cb) { Do(Function<void ()>(clone(cb))); }
void Do(const Function<void ()>& fn) { Do(clone(fn)); }
CoWork& operator&(const Callback& cb) { Do(cb); return *this; }

View file

@ -308,7 +308,6 @@ void *MemoryAllok__(int klass)
return heap->Allok(klass);
}
#if defined(HEAPDBG)
void *MemoryAlloc_(size_t sz)