You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/06/11 01:16:27 UTC
svn commit: r545962 -
/activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h
Author: tabish
Date: Sun Jun 10 16:16:26 2007
New Revision: 545962
URL: http://svn.apache.org/viewvc?view=rev&rev=545962
Log:
https://issues.apache.org/activemq/browse/AMQCPP-93
Slight tweaks for performance, not much to do since this one is so simple.
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h
Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h?view=diff&rev=545962&r1=545961&r2=545962
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h Sun Jun 10 16:16:26 2007
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef _ACTIVEMQ_UTIL_PROPERTIES_H_
#define _ACTIVEMQ_UTIL_PROPERTIES_H_
@@ -146,12 +146,7 @@
virtual void copy( const Properties* source ){
clear();
-
- std::vector< std::pair< std::string, std::string > > vec =
- source->toArray();
- for( unsigned int ix=0; ix<vec.size(); ++ix ){
- properties[vec[ix].first] = vec[ix].second;
- }
+ this->properties = source->properties;
}
/**