From e3e861eec87aa3a5b291baf90acd62a0a2949a3d Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 8 Nov 2015 03:30:17 +0800 Subject: [PATCH] a modification for leobackes's pull request --- include/nana/gui/widgets/listbox.hpp | 4 ++-- source/gui/widgets/listbox.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index 06666cd1..59324ef2 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -369,7 +369,7 @@ namespace nana if (set_value) iter.value(std::forward(t)); - update(); + _m_update(); return iter; } @@ -440,11 +440,11 @@ namespace nana private: void _m_append(std::vector && cells); void _m_cat_by_pos(); + void _m_update(); private: essence_t* ess_{nullptr}; category_t* cat_{nullptr}; size_type pos_{0}; ///< Absolute position, not relative to display, and dont change during sort() - void update(); }; struct export_options diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index fa502292..fe68dcec 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -4204,7 +4204,7 @@ namespace nana cat_ = &(*i); } - void cat_proxy::update() { + void cat_proxy::_m_update() { ess_->update(); }