changed Mmgr::getDFL() a bit

This commit is contained in:
hyung-hwan 2018-10-31 12:52:19 +00:00
parent efc34cdd69
commit ff78a340fb

View File

@ -73,8 +73,8 @@ Mmgr* Mmgr::dfl_mmgr = QSE_NULL;
Mmgr* Mmgr::getDFL () QSE_CPP_NOEXCEPT
{
static StdMmgr std_dfl_mmgr;
if (!Mmgr::dfl_mmgr) Mmgr::dfl_mmgr = &std_dfl_mmgr;
return Mmgr::dfl_mmgr;
Mmgr* mmgr = Mmgr::dfl_mmgr;
return mmgr? mmgr: &std_dfl_mmgr;
}
void Mmgr::setDFL (Mmgr* mmgr) QSE_CPP_NOEXCEPT