diff options
| author | Ted Ross <tross@apache.org> | 2008-09-15 15:37:59 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-09-15 15:37:59 +0000 |
| commit | 33d9364f9c3bc648faa1d04f3c02e58a9e5ad284 (patch) | |
| tree | 51699a22646fa02546da8b298b915df344646b8e /cpp/src/qpid/broker/DirectExchange.cpp | |
| parent | 5fc5a4610b2e85e245c752b81976dca36cc94666 (diff) | |
| download | qpid-python-33d9364f9c3bc648faa1d04f3c02e58a9e5ad284.tar.gz | |
QPID-1274 - Changed C++ namespace for generated management code. Improved efficiency of generated functions to use const references for non-simple types.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@695511 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DirectExchange.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/DirectExchange.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/DirectExchange.cpp b/cpp/src/qpid/broker/DirectExchange.cpp index bc6d7fe495..b4b892feeb 100644 --- a/cpp/src/qpid/broker/DirectExchange.cpp +++ b/cpp/src/qpid/broker/DirectExchange.cpp @@ -26,6 +26,7 @@ using namespace qpid::broker; using namespace qpid::framing; using namespace qpid::sys; using qpid::management::Manageable; +namespace _qmf = qmf::org::apache::qpid::broker; DirectExchange::DirectExchange(const string& _name, Manageable* _parent) : Exchange(_name, _parent) { @@ -47,7 +48,7 @@ bool DirectExchange::bind(Queue::shared_ptr queue, const string& routingKey, con if (bindings[routingKey].add_unless(b, MatchQueue(queue))) { if (mgmtExchange != 0) { mgmtExchange->inc_bindingCount(); - ((management::Queue*) queue->GetManagementObject())->inc_bindingCount(); + ((_qmf::Queue*) queue->GetManagementObject())->inc_bindingCount(); } return true; } else { @@ -60,7 +61,7 @@ bool DirectExchange::unbind(Queue::shared_ptr queue, const string& routingKey, c if (bindings[routingKey].remove_if(MatchQueue(queue))) { if (mgmtExchange != 0) { mgmtExchange->dec_bindingCount(); - ((management::Queue*) queue->GetManagementObject())->dec_bindingCount(); + ((_qmf::Queue*) queue->GetManagementObject())->dec_bindingCount(); } return true; } else { |
