Author: tabish
Date: Tue Feb 8 19:20:55 2011
New Revision: 1068535
URL: http://svn.apache.org/viewvc?rev=1068535&view=rev
Log:
Fix failing unit tests on Windows.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/LinkedList.h
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/LinkedList.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/LinkedList.h?rev=1068535&r1=1068534&r2=1068535&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/LinkedList.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/LinkedList.h
Tue Feb 8 19:20:55 2011
@@ -997,7 +997,7 @@ namespace util {
std::auto_ptr< ArrayList<E> > copy;
std::auto_ptr< Iterator<E> > iter;
- if( (void*)this == &collection ) {
+ if( this == &collection ) {
copy.reset( new ArrayList<E>( collection ) );
iter.reset( copy->iterator() );
} else {