refine code

fix bug that listbox may throw std::runtime when the modal is enabled
fix bug that textbox attachs a wrong event angent
This commit is contained in:
Jinhao
2016-08-10 01:46:13 +08:00
parent 185a2961d1
commit 6e86b6ae6c
44 changed files with 1120 additions and 1013 deletions

View File

@@ -94,7 +94,7 @@ namespace threads
pto->suspended = false;
::pthread_create(&(pto->handle), 0, reinterpret_cast<void*(*)(void*)>(&impl::_m_thr_starter), pto);
#endif
container_.threads.push_back(pto);
container_.threads.emplace_back(pto);
}
}
@@ -168,7 +168,7 @@ namespace threads
else
{
std::lock_guard<decltype(mutex_)> lock(mutex_);
container_.tasks.push_back(taskptr);
container_.tasks.emplace_back(taskptr);
}
}