diff options
| author | Ted Ross <tross@apache.org> | 2011-01-11 19:40:25 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-01-11 19:40:25 +0000 |
| commit | 6ab91ef0a7152da8f9aa60bb213292d6abdb64b8 (patch) | |
| tree | 81e680f5a811c0f7237a344bbc1ef3ad4f3725db /cpp/src | |
| parent | f104c8de0e9d892f65dc99eafd3b657c3e98dc32 (diff) | |
| download | qpid-python-6ab91ef0a7152da8f9aa60bb213292d6abdb64b8.tar.gz | |
Small code cleanup - Replaced object declaration with a const reference for efficiency.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1057825 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qmf/AgentSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qmf/AgentSession.cpp b/cpp/src/qmf/AgentSession.cpp index d8600fc3c0..24356519d7 100644 --- a/cpp/src/qmf/AgentSession.cpp +++ b/cpp/src/qmf/AgentSession.cpp @@ -650,7 +650,7 @@ void AgentSessionImpl::handleMethodRequest(const Variant::Map& content, const Me return; } - Schema schema(DataImplAccess::get(iter->second).getSchema()); + const Schema& schema(DataImplAccess::get(iter->second).getSchema()); if (schema.isValid()) { eventImpl->setSchema(schema); for (Variant::Map::const_iterator aIter = eventImpl->getArguments().begin(); |
