aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-30 11:50:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-30 11:50:40 +0200
commitf5cfc4e9a76dd30aed11ca985987030403007bab (patch)
treea75dbcd419694e014b01927c5c873f5de0ef6447
parent4c2203d85ae4773e5fc7c27eae246e9ca2779421 (diff)
Fix argument passing bug
-rw-r--r--bdep/config.cxx2
-rw-r--r--bdep/config.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx
index 3c7760d..2432263 100644
--- a/bdep/config.cxx
+++ b/bdep/config.cxx
@@ -65,7 +65,7 @@ namespace bdep
cmd_config_validate_add (const configuration_name_options& o,
const char* what,
optional<string>& name,
- optional<uint64_t> id)
+ optional<uint64_t>& id)
{
name = nullopt;
id = nullopt;
diff --git a/bdep/config.hxx b/bdep/config.hxx
index 300bb03..f209aa4 100644
--- a/bdep/config.hxx
+++ b/bdep/config.hxx
@@ -48,7 +48,7 @@ namespace bdep
cmd_config_validate_add (const configuration_name_options&,
const char* what,
optional<string>& name,
- optional<uint64_t> id);
+ optional<uint64_t>& id);
}
#endif // BDEP_CONFIG_HXX