aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config-module.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-24 23:05:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-10 13:35:28 +0300
commit5cee038743e1e149226d5b0b1a68a782182a4e33 (patch)
treed9d4d96074c67184c6cbf1bfbb398af88067b2c9 /mod/build-config-module.hxx
parent080c6778e89029560a6daf00605ec212ef9f39ee (diff)
Add filter to Build Configurations page
Diffstat (limited to 'mod/build-config-module.hxx')
-rw-r--r--mod/build-config-module.hxx12
1 files changed, 6 insertions, 6 deletions
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,