aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-07-25 22:22:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-01 16:52:33 +0300
commit0bbd98cffae9274936a0ac7cc579756182579e4e (patch)
tree9d09099468140df2785f13fbc5de2a892f085dee /mod
parent599bd6335c27ff2c1a48cc0b3a5ee115d49afcda (diff)
Adapt to using butl::small_vector instead of std::vector for some manifest values
Diffstat (limited to 'mod')
-rw-r--r--mod/build-config-module.cxx2
-rw-r--r--mod/build-config-module.hxx2
-rw-r--r--mod/page.hxx6
3 files changed, 6 insertions, 4 deletions
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<build_class_expr>& exprs,
+ exclude (const small_vector<build_class_expr, 1>& exprs,
const vector<build_constraint>& 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<bpkg::build_class_expr>&,
+ exclude (const small_vector<bpkg::build_class_expr, 1>&,
const vector<bpkg::build_constraint>&,
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<string, 5>& 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<string, 5>& topics_;
const dir_path& root_;
const string& tenant_;
};