0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 08:13:46 +02:00

ircd::conf: Fix interface argument inconsistency.

This commit is contained in:
Jason Volk 2020-06-08 17:15:17 -07:00
parent 84491464d6
commit 7a87f2eda9
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ namespace ircd::conf
bool exists(const string_view &key);
bool persists(const string_view &key);
string_view get(const string_view &key, const mutable_buffer &out);
string_view get(const mutable_buffer &out, const string_view &key);
std::string get(const string_view &key);
bool set(const string_view &key, const string_view &value);
bool set(std::nothrow_t, const string_view &key, const string_view &value);

View file

@ -162,8 +162,8 @@ catch(const std::out_of_range &e)
}
ircd::string_view
ircd::conf::get(const string_view &key,
const mutable_buffer &out)
ircd::conf::get(const mutable_buffer &out,
const string_view &key)
try
{
const auto &item(*items.at(key));