aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-16 08:26:37 +0000
committerlloyd <[email protected]>2006-07-16 08:26:37 +0000
commit640c705f2dc41a50ade47114d64ff5cdf9fd3598 (patch)
treed758ec06be2ce75354de2883613b9261521e7a53 /src/config.cpp
parente446213555c13befbd9a4e7e908fcf380e5efc76 (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.cpp8
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