summaryrefslogtreecommitdiff
path: root/qpid/cpp/client/src/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-10-11 15:50:15 +0000
committerAlan Conway <aconway@apache.org>2006-10-11 15:50:15 +0000
commitac3335857e3b30b99240c2a7638c8aed31d3e78d (patch)
tree144465ed3ea20dab341a972377de9c0451b71113 /qpid/cpp/client/src/Connection.cpp
parenta3d3d2ccc0ccb5d4b857be93c4774ac1bddd0aeb (diff)
downloadqpid-python-ac3335857e3b30b99240c2a7638c8aed31d3e78d.tar.gz
Turned up gcc warnings, fixed warnings in code, enabled -Werror.
Note: #include "qpid_test_plugin.h" instead of <cppunit/TestPlugin.h> Works around warning from a cppunit macro. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@462834 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/client/src/Connection.cpp')
-rw-r--r--qpid/cpp/client/src/Connection.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/qpid/cpp/client/src/Connection.cpp b/qpid/cpp/client/src/Connection.cpp
index eeb2330561..f332d2242c 100644
--- a/qpid/cpp/client/src/Connection.cpp
+++ b/qpid/cpp/client/src/Connection.cpp
@@ -37,9 +37,9 @@ Connection::~Connection(){
delete connector;
}
-void Connection::open(const std::string& host, int port, const std::string& uid, const std::string& pwd, const std::string& virtualhost){
- this->host = host;
- this->port = port;
+void Connection::open(const std::string& _host, int _port, const std::string& uid, const std::string& pwd, const std::string& virtualhost){
+ host = _host;
+ port = _port;
connector->setInputHandler(this);
connector->setTimeoutHandler(this);
connector->setShutdownHandler(this);
@@ -181,15 +181,15 @@ void Connection::handleMethod(AMQMethodBody::shared_ptr body){
}
}
-void Connection::handleHeader(AMQHeaderBody::shared_ptr body){
+void Connection::handleHeader(AMQHeaderBody::shared_ptr /*body*/){
error(504, "Channel error: received header body with channel 0.");
}
-void Connection::handleContent(AMQContentBody::shared_ptr body){
+void Connection::handleContent(AMQContentBody::shared_ptr /*body*/){
error(504, "Channel error: received content body with channel 0.");
}
-void Connection::handleHeartbeat(AMQHeartbeatBody::shared_ptr body){
+void Connection::handleHeartbeat(AMQHeartbeatBody::shared_ptr /*body*/){
}
void Connection::sendAndReceive(AMQFrame* frame, const AMQMethodBody& body){
@@ -204,7 +204,7 @@ void Connection::error(int code, const string& msg, int classid, int methodid){
std::cout << " [" << methodid << ":" << classid << "]";
}
std::cout << std::endl;
- sendAndReceive(new AMQFrame(0, new ConnectionCloseBody(code, (string&) msg, classid, methodid)), connection_close_ok);
+ sendAndReceive(new AMQFrame(0, new ConnectionCloseBody(code, msg, classid, methodid)), connection_close_ok);
connector->close();
}