From 248ad58be229252624d45febd7eb3ebbcf15a3ed Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 21 Oct 2023 14:11:41 +0100 Subject: Fix up warnings in maintenanceBugs --- gentoobrowse-api/service/maintenanceBugs.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gentoobrowse-api/service/maintenanceBugs.cpp b/gentoobrowse-api/service/maintenanceBugs.cpp index b88c857..c99a355 100644 --- a/gentoobrowse-api/service/maintenanceBugs.cpp +++ b/gentoobrowse-api/service/maintenanceBugs.cpp @@ -1,12 +1,8 @@ #include "command_fwd.h" #include "connection.h" -#include "connectionPool.h" #include "logWriter.h" #include "maintenanceimpl.h" #include "resourcePool.impl.h" -#include "wrap/domparser.h" -#include "wrap/regex.h" -#include "wrap/ustring.h" #include #include #include @@ -19,11 +15,9 @@ #include #include #include -#include #include -#include // IWYU pragma: keep +#include #include -#include #include #include #include @@ -38,8 +32,10 @@ namespace Ice { } namespace Gentoo::Service { - AdHoc::Lexer::PatternPtr bugLink = AdHoc::LexerMatchers::regex( - R"R(Bug:(\d+) - "" status:(\w*) resolution:(\w*) severity:(\w*).*)R", G_REGEX_OPTIMIZE); + namespace { + const AdHoc::Lexer::PatternPtr bugLink = AdHoc::LexerMatchers::regex( + R"R(Bug:(\d+) - "" status:(\w*) resolution:(\w*) severity:(\w*).*)R", G_REGEX_OPTIMIZE); + } class BugListParser : public xmlpp::SaxParser, AdHoc::Lexer { public: -- cgit v1.2.3