summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 10:34:27 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 10:34:27 +0000
commit73d4ac6de04a1035ac36182d3f269cc938c6bc19 (patch)
tree84d50083d34ea1d69b832a5e55eab50ebc1ac71b /include
parent7640fad30cc2a3d61e67a7075c27f26400d4779f (diff)
Remove redundant uses of const.
Diffstat (limited to 'include')
-rw-r--r--include/anope.h4
-rw-r--r--include/modes.h4
-rw-r--r--include/opertype.h4
-rw-r--r--include/sockets.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/include/anope.h b/include/anope.h
index b71f84f19..6031dceac 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -495,7 +495,7 @@ namespace Anope
/** Return the last error, uses errno/GetLastError() to determine this
* @return An error message
*/
- extern CoreExport const string LastError();
+ extern CoreExport string LastError();
/** Determines if a path is a file
*/
@@ -623,7 +623,7 @@ public:
/** Fetch the entire remaining stream, without tokenizing
* @return The remaining part of the stream
*/
- const Anope::string GetRemaining();
+ Anope::string GetRemaining();
/** Returns true if the end of the stream has been reached
* @return True if the end of the stream has been reached, otherwise false
diff --git a/include/modes.h b/include/modes.h
index f1c116f1c..0198e6843 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -419,9 +419,9 @@ public:
/** Get the banned mask for this entry
* @return The mask
*/
- const Anope::string GetMask() const;
+ Anope::string GetMask() const;
- const Anope::string GetNUHMask() const;
+ Anope::string GetNUHMask() const;
/** Check if this entry matches a user
* @param u The user
diff --git a/include/opertype.h b/include/opertype.h
index d9f0f709f..1ec7f7aca 100644
--- a/include/opertype.h
+++ b/include/opertype.h
@@ -115,10 +115,10 @@ public:
/** Gets the icommands for this opertype
* @return A list of commands
*/
- const std::list<Anope::string> GetCommands() const;
+ std::list<Anope::string> GetCommands() const;
/** Gets the privileges for this opertype
* @return A list of privileges
*/
- const std::list<Anope::string> GetPrivs() const;
+ std::list<Anope::string> GetPrivs() const;
};
diff --git a/include/sockets.h b/include/sockets.h
index b8aacc7e7..853ba0470 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -313,7 +313,7 @@ public:
/** Gets the new line from the input buffer, if any
*/
- const Anope::string GetLine();
+ Anope::string GetLine();
/** Write to the socket
* @param message The message