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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user