From 9d62150b40ca9cb28c8150aacbaf6575831b5329 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 5 Nov 2019 21:54:11 +0200 Subject: Fix manpages not disabled when disabled by meson --- src/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 28887b9..4d4fa8d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ #include "browser.h" #include "builtins.h" +#include "conf.hpp" #include "configuration.h" #include "crashhandler.h" #include "session/session.h" @@ -16,14 +17,13 @@ #include "version.h" #include #include +#include #include #include #include #include #include #include -#include "conf.hpp" -#include typedef std::function::const_iterator, std::vector::const_iterator)> subcommand_func; typedef std::unordered_map command_map; @@ -76,7 +76,7 @@ int main(int argc, char **argv) args::PositionalList cmd_args(parser, "URL(s)", "List of URLs to open"); try { - /*auto next = */parser.ParseArgs(args); + /*auto next = */ parser.ParseArgs(args); if(cmd_version) return builtins::version(); @@ -118,7 +118,6 @@ int main(int argc, char **argv) spdlog::debug("Opening config file {}", config_path); init_conf(config_path); - QVector plugins; CommandHash_t pluginCommands; @@ -139,7 +138,7 @@ int main(int argc, char **argv) spdlog::warn("{}", qUtf8Printable(loader->errorString())); delete loader; } - } + } }(); // argc, argv, allowSecondary @@ -168,7 +167,7 @@ int main(int argc, char **argv) spdlog::debug("Installed breakpad exception handler (path {})", crashpath); #endif // CONFIG_USEBREAKPAD - const auto profile = [](){ + const auto profile = []() { Configuration c; return c.value("profile.default").value(); }(); -- cgit v1.2.1