qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject svn commit: r1057825 - /qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp
Date Tue, 11 Jan 2011 19:40:26 GMT
Author: tross
Date: Tue Jan 11 19:40:25 2011
New Revision: 1057825

URL: http://svn.apache.org/viewvc?rev=1057825&view=rev
Log:
Small code cleanup - Replaced object declaration with a const reference for efficiency.

Modified:
    qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp

Modified: qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp?rev=1057825&r1=1057824&r2=1057825&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qmf/AgentSession.cpp Tue Jan 11 19:40:25 2011
@@ -650,7 +650,7 @@ void AgentSessionImpl::handleMethodReque
             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();



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message