activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r545962 - /activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h
Date Sun, 10 Jun 2007 23:16:27 GMT
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;
         }
 
         /**



Mime
View raw message