From: Uwe Hermann Date: Fri, 10 Mar 2017 20:17:22 +0000 (+0100) Subject: Don't use redundant void argument. X-Git-Tag: pulseview-0.4.0~161 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1887da2169397774c9563e9bf44c51ed7efc3646;p=pulseview.git Don't use redundant void argument. This patch was generated using clang-tidy: clang-tidy -checks="-*,modernize-redundant-void-arg" -fix --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index f46045ad..2bf3d20a 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -567,7 +567,7 @@ void View::enable_sticky_scrolling(bool state) sticky_scrolling_ = state; } -void View::toggle_sticky_scrolling(void) +void View::toggle_sticky_scrolling() { sticky_scrolling_ = !sticky_scrolling_; } diff --git a/pv/views/trace/standardbar.cpp b/pv/views/trace/standardbar.cpp index 162a8c38..dc82ff1e 100644 --- a/pv/views/trace/standardbar.cpp +++ b/pv/views/trace/standardbar.cpp @@ -92,7 +92,7 @@ StandardBar::StandardBar(Session &session, QWidget *parent, add_toolbar_widgets(); } -Session &StandardBar::session(void) const +Session &StandardBar::session() const { return session_; }