summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/maintenanceBugs.cpp14
1 files 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 <Ice/Properties.h>
#include <boost/core/typeinfo.hpp>
#include <boost/detail/basic_pointerbuf.hpp>
@@ -19,11 +15,9 @@
#include <curlStream.h>
#include <exception>
#include <filesystem>
-#include <initializer_list>
#include <lexer-regex.h>
-#include <libxml++/parsers/saxparser.h> // IWYU pragma: keep
+#include <libxml++/parsers/saxparser.h>
#include <logger.h>
-#include <memory>
#include <modifycommand.h>
#include <nagios.h>
#include <stack>
@@ -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: