diff options
author | Adam <Adam@anope.org> | 2013-09-08 04:00:00 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-08 04:00:00 -0400 |
commit | 29694ce3d2c57ebefa9b14b6816679bf44799921 (patch) | |
tree | 0b65daea53d168becd4c7c9bfef7bc7ad70a7549 | |
parent | d349f981fbe70fb11e3db4c486f59749ffe74c2b (diff) |
Fix compile warnings as seen on g++ 4.4.7
-rw-r--r-- | src/modules/m_spanningtree/commandbuilder.h | 22 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h index 07f7c94d0..597b22751 100644 --- a/src/modules/m_spanningtree/commandbuilder.h +++ b/src/modules/m_spanningtree/commandbuilder.h @@ -49,15 +49,15 @@ class CmdBuilder push(cmd); } - CmdBuilder& push_raw(const std::string& str) + CmdBuilder& push_raw(const std::string& s) { - content.append(str); + content.append(s); return *this; } - CmdBuilder& push_raw(const char* str) + CmdBuilder& push_raw(const char* s) { - content.append(str); + content.append(s); return *this; } @@ -67,17 +67,17 @@ class CmdBuilder return *this; } - CmdBuilder& push(const std::string& str) + CmdBuilder& push(const std::string& s) { content.push_back(' '); - content.append(str); + content.append(s); return *this; } - CmdBuilder& push(const char* str) + CmdBuilder& push(const char* s) { content.push_back(' '); - content.append(str); + content.append(s); return *this; } @@ -96,11 +96,11 @@ class CmdBuilder return *this; } - CmdBuilder& push_last(const std::string& str) + CmdBuilder& push_last(const std::string& s) { content.push_back(' '); content.push_back(':'); - content.append(str); + content.append(s); return *this; } @@ -112,7 +112,7 @@ class CmdBuilder return *this; } - void push_back(const std::string& str) { push(str); } + void push_back(const std::string& s) { push(s); } const std::string& str() const { return content; } operator const std::string&() const { return str(); } diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 8d14ff5ff..e3f355ac6 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -307,7 +307,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, ServerCommand* scmd = Utils->Creator->CmdManager.GetHandler(command); CommandBase* cmdbase = scmd; - Command* cmd; + Command* cmd = NULL; if (!scmd) { // Not a special server-to-server command |