fix compiler errors/warnings for clang 5.0
This commit is contained in:
@@ -195,7 +195,7 @@ namespace nana
|
||||
_m_refresh();
|
||||
}
|
||||
|
||||
void width(unsigned minimum, unsigned maximum)
|
||||
void width(unsigned minimum, unsigned maximum) override
|
||||
{
|
||||
//maximum must be larger than minimum, but maximum == 0 is allowed if minimum is 0
|
||||
if ((minimum >= maximum) && (minimum != 0))
|
||||
@@ -3531,7 +3531,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, const nana::rectangle& /*r*/, nana::color bgcolor, item_state state)
|
||||
{
|
||||
const auto item_height = essence_->item_height();
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace nana
|
||||
|
||||
//class item_renderer
|
||||
item_renderer::item_renderer(window wd, graph_reference graph)
|
||||
:handle_(wd), graph_(graph), scheme_ptr_(static_cast<scheme*>(API::dev::get_scheme(wd)))
|
||||
:graph_(graph), scheme_ptr_(static_cast<scheme*>(API::dev::get_scheme(wd)))
|
||||
{}
|
||||
|
||||
void item_renderer::background(const nana::point& pos, const nana::size& size, state item_state)
|
||||
|
||||
@@ -440,7 +440,7 @@ namespace nana{ namespace widgets
|
||||
);
|
||||
}
|
||||
|
||||
bool clear()
|
||||
bool clear() override
|
||||
{
|
||||
if (colored_areas_.empty())
|
||||
return false;
|
||||
|
||||
@@ -2200,7 +2200,7 @@ namespace nana
|
||||
}
|
||||
|
||||
path.insert(0, pnode->value.first);
|
||||
return std::move(path);
|
||||
return path;
|
||||
}
|
||||
return{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user