summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 01:17:30 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 01:17:30 +0000
commit0d88137738faca951564e5786b209d9d54c10ee2 (patch)
tree28e138da193f6c62c602829967c0d917f2a1a355 /include
parent5bcb780c6d486b603856016dc566b3a403548545 (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.h6
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.
*/