Removed addtional code smells
This commit is contained in:
parent
49a42f7ac7
commit
a255f31dfd
@ -96,7 +96,7 @@ bool Browser::worker() {
|
||||
BOOST_LOG_TRIVIAL(debug)
|
||||
<< "browser:: refreshing SAP source " << it->id;
|
||||
// annoucement, update last seen and announce period
|
||||
auto last_update_ =
|
||||
last_update_ =
|
||||
duration_cast<second_t>(steady_clock::now() - startup_).count();
|
||||
auto upd_source{*it};
|
||||
if ((last_update_ - upd_source.last_seen) != 0) {
|
||||
|
@ -39,7 +39,7 @@ namespace po = boost::program_options;
|
||||
namespace postyle = boost::program_options::command_line_style;
|
||||
namespace logging = boost::log;
|
||||
|
||||
static std::string version("bondagit-1.6.2");
|
||||
static const std::string version("bondagit-1.6.2");
|
||||
static std::atomic<bool> terminate = false;
|
||||
|
||||
void termination_handler(int signum) {
|
||||
|
@ -38,6 +38,8 @@ struct AvahiLockGuard {
|
||||
avahi_threaded_poll_unlock(poll_);
|
||||
}
|
||||
}
|
||||
AvahiLockGuard(const AvahiLockGuard&) = delete;
|
||||
AvahiLockGuard& operator=(const AvahiLockGuard&) = delete;
|
||||
|
||||
private:
|
||||
AvahiThreadedPoll* poll_{nullptr};
|
||||
|
Loading…
x
Reference in New Issue
Block a user