From 0bbd98cffae9274936a0ac7cc579756182579e4e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 25 Jul 2019 22:22:07 +0300 Subject: Adapt to using butl::small_vector instead of std::vector for some manifest values --- mod/build-config-module.cxx | 2 +- mod/build-config-module.hxx | 2 +- mod/page.hxx | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'mod') diff --git a/mod/build-config-module.cxx b/mod/build-config-module.cxx index 02bba01..d21849e 100644 --- a/mod/build-config-module.cxx +++ b/mod/build-config-module.cxx @@ -163,7 +163,7 @@ namespace brep {"default"}, '+', "Default."); bool build_config_module:: - exclude (const vector& exprs, + exclude (const small_vector& exprs, const vector& constrs, const build_config& cfg, string* reason) const diff --git a/mod/build-config-module.hxx b/mod/build-config-module.hxx index 3ad1a83..25ddbb4 100644 --- a/mod/build-config-module.hxx +++ b/mod/build-config-module.hxx @@ -47,7 +47,7 @@ namespace brep // requested. // bool - exclude (const vector&, + exclude (const small_vector&, const vector&, const bbot::build_config&, string* reason = nullptr) const; diff --git a/mod/page.hxx b/mod/page.hxx index 2fc3a0b..cba8358 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -329,14 +329,16 @@ namespace brep class TR_TOPICS { public: - TR_TOPICS (const strings& ts, const dir_path& r, const string& t) + TR_TOPICS (const small_vector& ts, + const dir_path& r, + const string& t) : topics_ (ts), root_ (r), tenant_ (t) {} void operator() (xml::serializer&) const; private: - const strings& topics_; + const small_vector& topics_; const dir_path& root_; const string& tenant_; }; -- cgit v1.1