diff options
author | lloyd <[email protected]> | 2006-07-16 08:26:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-16 08:26:37 +0000 |
commit | 640c705f2dc41a50ade47114d64ff5cdf9fd3598 (patch) | |
tree | d758ec06be2ce75354de2883613b9261521e7a53 /src/config.cpp | |
parent | e446213555c13befbd9a4e7e908fcf380e5efc76 (diff) |
Remove a declaration for add_alias, which was removed at some point
without the decl also being removed.
Add an add_alias function to the Config class, just a simple wrapper
around Config::set
Change policy.cpp to use add_alias instead of set when setting an alias
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp index 2e0a6609d..a3bcfa1fd 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -63,6 +63,14 @@ void Config::set(const std::string& section, const std::string& key, } /************************************************* +* Add an alias * +*************************************************/ +void Config::add_alias(const std::string& key, const std::string& value) + { + set("alias", key, value); + } + +/************************************************* * Dereference an alias to a fixed name * *************************************************/ std::string Config::deref_alias(const std::string& key) const |