small fixes

This commit is contained in:
Jinhao
2016-05-22 04:40:19 +08:00
parent 5e33bc643f
commit a0a1f01097
2 changed files with 7 additions and 7 deletions

View File

@@ -387,7 +387,7 @@ namespace nana
}
panels_.emplace_back();
auto wdg = wdg.get();
auto wdg_ptr = wdg.get();
panels_.back().widget_ptr.swap(wdg);
for (auto & pn : panels_)
@@ -395,7 +395,7 @@ namespace nana
if (pn.widget_ptr)
pn.widget_ptr->move(r);
}
return wdg;
return wdg_ptr;
}
return nullptr;
}
@@ -698,4 +698,4 @@ namespace nana
}//end namespace place_parts
}//end namespace nana
#endif //NANA_GUI_PLACE_PARTS_HPP
#endif //NANA_GUI_PLACE_PARTS_HPP