From a937c6d8c5a81167ad957b1ad591fb389406deb8 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Wed, 21 Jun 2017 23:25:02 +0800 Subject: [PATCH] code refined --- source/gui/widgets/listbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index 2dcd6f3e..078cd6c8 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -3441,7 +3441,7 @@ namespace nana idx.item = 0; - _m_draw_categ(*i_categ, rect.x - origin.x, item_coord.y, txtoff, header_w, rect, bgcolor, + _m_draw_categ(*i_categ, rect.x - origin.x, item_coord.y, txtoff, header_w, bgcolor, (hoverred_pos.is_category() && (idx.cat == hoverred_pos.cat) ? item_state::highlighted : item_state::normal) ); item_coord.y += static_cast(item_height_px); @@ -3500,7 +3500,7 @@ namespace nana } } private: - void _m_draw_categ(const category_t& categ, int x, int y, int txtoff, unsigned width, const nana::rectangle& /*r*/, nana::color bgcolor, item_state state) + void _m_draw_categ(const category_t& categ, int x, int y, int txtoff, unsigned width, nana::color bgcolor, item_state state) { const auto item_height = essence_->item_height();