From d3feb611671ee12b1328fcc63e8be092c2681663 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Thu, 9 Jan 2025 06:39:43 +0000 Subject: [PATCH] Fix misc-unused-alias-decls in various Signed-off-by: Matt Liberty --- src/dst/src/BalancerConnection.h | 8 ++++---- src/dst/src/LoadBalancer.h | 3 +++ src/gui/src/renderThread.cpp | 2 ++ src/gui/src/search.h | 1 - 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/dst/src/BalancerConnection.h b/src/dst/src/BalancerConnection.h index fb79d5b581f..f63df8fed1a 100644 --- a/src/dst/src/BalancerConnection.h +++ b/src/dst/src/BalancerConnection.h @@ -31,14 +31,14 @@ #include #include -namespace asio = boost::asio; -namespace ip = asio::ip; -using asio::ip::tcp; - namespace utl { class Logger; } namespace dst { + +namespace asio = boost::asio; +using asio::ip::tcp; + class LoadBalancer; class BalancerConnection diff --git a/src/dst/src/LoadBalancer.h b/src/dst/src/LoadBalancer.h index 4877b49ddcf..0499192b8c5 100644 --- a/src/dst/src/LoadBalancer.h +++ b/src/dst/src/LoadBalancer.h @@ -43,6 +43,9 @@ class Logger; } namespace dst { + +namespace ip = asio::ip; + const int workers_discovery_period = 15; // time in seconds between retrying to // find new workers on the network class Distributed; diff --git a/src/gui/src/renderThread.cpp b/src/gui/src/renderThread.cpp index 4acb803199f..29f5b72671a 100644 --- a/src/gui/src/renderThread.cpp +++ b/src/gui/src/renderThread.cpp @@ -42,6 +42,8 @@ namespace gui { +namespace bg = boost::geometry; + using odb::dbBlock; using odb::dbInst; using odb::dbMaster; diff --git a/src/gui/src/search.h b/src/gui/src/search.h index 67200593115..eb6becfa340 100644 --- a/src/gui/src/search.h +++ b/src/gui/src/search.h @@ -44,7 +44,6 @@ namespace gui { -namespace bg = boost::geometry; namespace bgi = boost::geometry::index; // This is a geometric search structure. It wraps up Boost's