activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1050472 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h
Date Fri, 17 Dec 2010 19:30:16 GMT
Author: tabish
Date: Fri Dec 17 19:30:15 2010
New Revision: 1050472

URL: http://svn.apache.org/viewvc?rev=1050472&view=rev
Log:
Fix a warning.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h?rev=1050472&r1=1050471&r2=1050472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/CopyOnWriteArraySet.h
Fri Dec 17 19:30:15 2010
@@ -97,7 +97,7 @@ namespace concurrent {
         }
 
         virtual bool addAll( const Collection<E>& collection ) {
-            return this->array.addAllAbsent( collection );
+            return this->array.addAllAbsent( collection ) > 0 ? true : false;
         }
 
         virtual void clear() {



Mime
View raw message