diff --git a/source/audio/detail/buffer_preparation.cpp b/source/audio/detail/buffer_preparation.cpp index 82942846..febe3a77 100644 --- a/source/audio/detail/buffer_preparation.cpp +++ b/source/audio/detail/buffer_preparation.cpp @@ -78,7 +78,7 @@ namespace nana{ namespace audio void buffer_preparation::revert(meta * m) { std::lock_guard lock(token_prepared_); - bool if_signal = prepared_.empty(); + auto const if_signal = prepared_.empty(); prepared_.emplace_back(m); if(if_signal) cond_prepared_.notify_one(); diff --git a/source/gui/widgets/menubar.cpp b/source/gui/widgets/menubar.cpp index a14db116..a83c3d86 100644 --- a/source/gui/widgets/menubar.cpp +++ b/source/gui/widgets/menubar.cpp @@ -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; } diff --git a/source/gui/widgets/progress.cpp b/source/gui/widgets/progress.cpp index 5e66334b..20b46ddc 100644 --- a/source/gui/widgets/progress.cpp +++ b/source/gui/widgets/progress.cpp @@ -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(border_px));