summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-29 16:00:24 +0000
committerGordon Sim <gsim@apache.org>2010-03-29 16:00:24 +0000
commit76589a9e66997ad7d12c5689240e7481bf7b67b2 (patch)
treeea72ec14078104b05fba67b36eeabaa7654bc046 /cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
parent966d965f95bbb72a9c2dc34909e84f11882314e4 (diff)
downloadqpid-python-76589a9e66997ad7d12c5689240e7481bf7b67b2.tar.gz
QPID-664: move Variant and Uuid from messaging to types namespace
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928814 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/amqp0_10/AddressResolution.cpp')
-rw-r--r--cpp/src/qpid/client/amqp0_10/AddressResolution.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp b/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
index 9f2d4eef78..990b2a19d8 100644
--- a/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
+++ b/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
@@ -26,7 +26,7 @@
#include "qpid/client/amqp0_10/OutgoingMessage.h"
#include "qpid/messaging/Address.h"
#include "qpid/messaging/Message.h"
-#include "qpid/messaging/Variant.h"
+#include "qpid/types/Variant.h"
#include "qpid/Exception.h"
#include "qpid/log/Statement.h"
#include "qpid/framing/enum.h"
@@ -47,13 +47,13 @@ namespace amqp0_10 {
using qpid::Exception;
using qpid::messaging::Address;
using qpid::messaging::InvalidAddress;
-using qpid::messaging::Variant;
using qpid::framing::ExchangeBoundResult;
using qpid::framing::ExchangeQueryResult;
using qpid::framing::FieldTable;
using qpid::framing::QueueQueryResult;
using qpid::framing::ReplyTo;
using qpid::framing::Uuid;
+using namespace qpid::types;
using namespace qpid::framing::message;
using namespace boost::assign;
@@ -278,7 +278,7 @@ const Variant& getOption(const Variant::Map& options, const std::vector<std::str
if (j == options.end()) {
return EMPTY_VARIANT;
} else if (++index < path.size()) {
- if (j->second.getType() != qpid::messaging::VAR_MAP)
+ if (j->second.getType() != VAR_MAP)
throw InvalidAddress((boost::format("Expected %1% to be a map") % j->first).str());
return getOption(j->second.asMap(), path, index);
} else {
@@ -326,7 +326,7 @@ Opt& Opt::operator/(const std::string& name)
options = 0;
} else {
value = &(j->second);
- if (value->getType() == qpid::messaging::VAR_MAP) options = &(value->asMap());
+ if (value->getType() == VAR_MAP) options = &(value->asMap());
else options = 0;
}
}