From 031e2f0db69f7ba29c8e666f5e113458d7e3836b Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 21 May 2021 01:50:13 +0200 Subject: [PATCH] Use sub-namespaces for functionality-groups. --- src/main.cpp | 2 +- src/options.cpp | 4 ++-- src/options.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c0376b8..8b2134e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) po::variables_map vm; try { - vm = epubgrep::parse_options(argc, argv); + vm = epubgrep::options::parse_options(argc, argv); } catch (std::exception &e) { // Exceptions we can't recover from or ones we don't know. diff --git a/src/options.cpp b/src/options.cpp index fc394b2..29e5f43 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -31,7 +31,7 @@ #include #include -namespace epubgrep +namespace epubgrep::options { namespace po = boost::program_options; @@ -129,4 +129,4 @@ fs::path get_config_path() return "epubgrep.conf"; } -} // namespace epubgrep +} // namespace epubgrep::options diff --git a/src/options.hpp b/src/options.hpp index 58825c3..289d8e4 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -21,7 +21,7 @@ #include -namespace epubgrep +namespace epubgrep::options { namespace po = boost::program_options; @@ -38,6 +38,6 @@ po::variables_map parse_options(int argc, char *argv[]); */ fs::path get_config_path(); -} // namespace epubgrep +} // namespace epubgrep::options #endif // EPUBGREP_OPTIONS_HPP