diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 15:59:59 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 15:59:59 +0000 |
commit | 3f1d51e64ad58c9f2430863aa50707700b353c41 (patch) | |
tree | ffb774d0d3cb0331617c39e7395bbcb5002fbfe3 /src/modules | |
parent | 4706227c0e6e814ea0b8244d9745b04588d87be6 (diff) |
deprecated covariant return type flux capacitor flopcircuit removal with reference pointer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3662 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_filter_pcre.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_censor.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_filter.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_helpop.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_randquote.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp index ff87d7e8a..ade243fb4 100644 --- a/src/modules/extra/m_filter_pcre.cpp +++ b/src/modules/extra/m_filter_pcre.cpp @@ -31,7 +31,7 @@ using namespace std; class FilterPCREException : public ModuleException { public: - virtual char* GetReason() + virtual const char* GetReason() { return "Could not find <filter file=\"\"> definition in your config file!"; } diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index d42e8b324..e57d09c8c 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -30,7 +30,7 @@ typedef std::map<irc::string,irc::string> censor_t; class CensorException : public ModuleException { public: - virtual char* GetReason() + virtual const char* GetReason() { return "Could not find <censor file=\"\"> definition in your config file!"; } diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index e08ba479c..929ae6456 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -41,7 +41,7 @@ typedef std::map<std::string,Filter*> filter_t; class FilterException : public ModuleException { public: - virtual char* GetReason() + virtual const char* GetReason() { return "Could not find <filter file=\"\"> definition in your config file!"; } diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index c76046727..4e59ab2b8 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -160,7 +160,7 @@ class HelpopException : public ModuleException std::string err; public: HelpopException(std::string message) : err(message) { } - virtual char* GetReason() { return (char*)err.c_str(); } + virtual const char* GetReason() { return err.c_str(); } }; class ModuleHelpop : public Module diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 7dfd44da3..430adf9ef 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -69,7 +69,7 @@ class RandquoteException : public ModuleException public: RandquoteException(std::string message) : err(message) { } - virtual char* GetReason() + virtual const char* GetReason() { return (char*)err.c_str(); } |