You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2007/02/15 22:20:52 UTC
svn commit: r508156 -
/incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h
Author: aconway
Date: Thu Feb 15 13:20:52 2007
New Revision: 508156
URL: http://svn.apache.org/viewvc?view=rev&rev=508156
Log:
Constructor version argument defaults to highestProtocolVersion.
Modified:
incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h
Modified: incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h?view=diff&rev=508156&r1=508155&r2=508156
==============================================================================
--- incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h (original)
+++ incubator/qpid/branches/qpid.0-9/cpp/tests/InProcessBroker.h Thu Feb 15 13:20:52 2007
@@ -22,6 +22,7 @@
#include <iostream>
#include <algorithm>
+#include "AMQP_HighestVersion.h"
#include "framing/AMQFrame.h"
#include "broker/Broker.h"
#include "broker/Connection.h"
@@ -70,7 +71,9 @@
};
typedef std::vector<Frame> Conversation;
- InProcessBroker(framing::ProtocolVersion ver) :
+ InProcessBroker(framing::ProtocolVersion ver=
+ framing::highestProtocolVersion
+ ) :
Connector(ver),
protocolInit(ver),
broker(broker::Broker::create()),
@@ -151,8 +154,9 @@
qpid::broker::InProcessBroker broker;
/** Constructor creates broker and opens client connection. */
- InProcessBrokerClient(qpid::framing::ProtocolVersion version)
- : broker(version)
+ InProcessBrokerClient(qpid::framing::ProtocolVersion version=
+ qpid::framing::highestProtocolVersion
+ ) : broker(version)
{
setConnector(broker);
open("");