fix some compiler warnings

This commit is contained in:
Jinhao
2017-09-06 00:22:00 +08:00
parent 905443eba1
commit 166abe52f3
3 changed files with 4 additions and 6 deletions

View File

@@ -169,7 +169,7 @@ namespace nana
}
std::size_t find(unsigned long shortkey) const
std::size_t find(wchar_t shortkey) const
{
if (shortkey)
{
@@ -262,7 +262,7 @@ namespace nana
return *ess_;
}
void trigger::attached(widget_reference widget, graph_reference graph)
void trigger::attached(widget_reference widget, graph_reference)
{
ess_->widget_ptr = &widget;
}

View File

@@ -136,10 +136,8 @@ namespace nana
{
const unsigned border_px = substance::border_px;
unsigned width = graph.width() - border_px * 2;
unsigned height = graph.height() - border_px * 2;
rectangle rt_val{ graph.size() };
auto const width = rt_val.width - border_px * 2;
rt_val.pare_off(static_cast<int>(border_px));