Clean up includes

This commit is contained in:
2025-08-29 16:50:24 +02:00
parent 3192a5bc83
commit 4166a05a7f
4 changed files with 4 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
#include <electricity/logger/database.hpp>
#include <exception>
#include <iomanip>
#include <spdlog/spdlog.h>
#include <sstream>

View File

@@ -4,6 +4,7 @@
#include <electricity/logger/serialport.hpp>
#include <exception>
#include <fcntl.h>
#include <iostream>
#include <optional>
#include <spdlog/spdlog.h>
#include <stdexcept>
@@ -34,7 +35,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
auto const parsed = options.parse(argc, argv);
return parsed;
}
catch(cxxopts::OptionException const & e)
catch(cxxopts::exceptions::exception const & e)
{
spdlog::error(e.what());
return {};

View File

@@ -1,6 +1,4 @@
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <solar/logger/database.hpp>
#include <spdlog/spdlog.h>

View File

@@ -1,12 +1,11 @@
#include <cstdio>
#include <cxxopts.hpp>
#include <iomanip>
#include <iostream>
#include <optional>
#include <solar/logger/database.hpp>
#include <solar/logger/envoydata.hpp>
#include <solar/logger/zeverdata.hpp>
#include <spdlog/spdlog.h>
#include <sstream>
#include <string>
namespace detail
@@ -53,7 +52,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
auto const parsed = options.parse(argc, argv);
return parsed;
}
catch(cxxopts::OptionException const & e)
catch(cxxopts::exceptions::exception const & e)
{
spdlog::error(e.what());
return {};