From 0d88137738faca951564e5786b209d9d54c10ee2 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 13 Oct 2009 01:17:30 +0000 Subject: Code style cleanup, replace static_cast() 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 --- include/configreader.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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. */ -- cgit