From 5cee038743e1e149226d5b0b1a68a782182a4e33 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 Dec 2018 23:05:35 +0300 Subject: Add filter to Build Configurations page --- mod/build-config-module.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mod/build-config-module.hxx') diff --git a/mod/build-config-module.hxx b/mod/build-config-module.hxx index bd6e0b0..97cfe28 100644 --- a/mod/build-config-module.hxx +++ b/mod/build-config-module.hxx @@ -54,13 +54,13 @@ namespace brep // Check if the configuration belongs to the specified class. // - // Note that the configuration base classes are not checked. - // - static bool - belongs (const bbot::build_config& cfg, const char* cls) + bool + belongs (const bbot::build_config&, const char*) const; + + bool + belongs (const bbot::build_config& cfg, const string& cls) const { - const strings& cs (cfg.classes); - return std::find (cs.begin (), cs.end (), cls) != cs.end (); + return belongs (cfg, cls.c_str ()); } // Convert dash-separated components (target, build configuration name, -- cgit v1.1