diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-13 01:17:30 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-13 01:17:30 +0000 |
| commit | 0d88137738faca951564e5786b209d9d54c10ee2 (patch) | |
| tree | 28e138da193f6c62c602829967c0d917f2a1a355 /include | |
| parent | 5bcb780c6d486b603856016dc566b3a403548545 (diff) | |
Code style cleanup, replace static_cast<std::string>() with std::string(), slight updates to config reader from InspIRCd.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2555 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/configreader.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/configreader.h b/include/configreader.h index 35ed02809..017e254da 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -74,7 +74,9 @@ class ValueItem /** Get value as an int */ int GetInteger(); /** Get value as a string */ - char *GetString(); + const char *GetString() const; + /** Get value as a string */ + inline const std::string &GetValue() const { return v; } /** Get value as a bool */ bool GetBool(); }; @@ -437,7 +439,7 @@ class CoreExport ConfigReader /** Overloaded constructor. * This constructor initialises the ConfigReader class to read a user-specified config file */ - ConfigReader(const std::string &); + ConfigReader(const std::string &); /** Default destructor. * This method destroys the ConfigReader class. */ |
