aboutsummaryrefslogtreecommitdiff
path: root/include/clientprotocol.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /include/clientprotocol.h
parentRemove the unused ExitCodes array. (diff)
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'include/clientprotocol.h')
-rw-r--r--include/clientprotocol.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 31079e77b..8c4bf1d19 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -358,7 +358,7 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource
void PushParam(const std::string& str) { params.emplace_back(0, str); }
/** Add a non-string parameter to the parameter list.
- * @param arg1 Non-string to add, will be copied.
+ * @param param Non-string to add, will be copied.
*/
template<typename T>
void PushParam(T&& param)
@@ -392,20 +392,20 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource
* @param index Index of the parameter to replace. Must be less than GetParams().size().
* @param str String to replace the parameter or placeholder with, will be copied.
*/
- void ReplaceParam(unsigned int index, const char* str) { params[index] = Param(0, str); }
+ void ReplaceParam(size_t index, const char* str) { params[index] = Param(0, str); }
/** Replace a parameter or a placeholder that is already in the parameter list.
* @param index Index of the parameter to replace. Must be less than GetParams().size().
* @param str String to replace the parameter or placeholder with, will be copied.
*/
- void ReplaceParam(unsigned int index, const std::string& str) { params[index] = Param(0, str); }
+ void ReplaceParam(size_t index, const std::string& str) { params[index] = Param(0, str); }
/** Replace a parameter or a placeholder that is already in the parameter list.
* @param index Index of the parameter to replace. Must be less than GetParams().size().
* @param str String to replace the parameter or placeholder with.
* The string will NOT be copied, it must remain alive until ClearParams() is called or until the object is destroyed.
*/
- void ReplaceParamRef(unsigned int index, const std::string& str) { params[index] = Param(str); }
+ void ReplaceParamRef(size_t index, const std::string& str) { params[index] = Param(str); }
/** Add a tag.
* @param tagname Raw name of the tag to use in the protocol.