Fixed -Wshadow warnings
[libcds.git] / test / unit / pqueue / intrusive_mspqueue.cpp
index 6c8cdae3d4c5b3089825dd58036700246cc8c0dd..5fa1921afc0c225ecae6dd47101621df083c3d50 100644 (file)
@@ -1,7 +1,7 @@
 /*
     This file is a part of libcds - Concurrent Data Structures library
 
-    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
@@ -116,7 +116,7 @@ namespace {
             ASSERT_EQ( pq.size(), 0u );
 
             // Clear test
-            for ( value_type * p = pFirst; p < pLast; ++p ) {
+            for ( p = pFirst; p < pLast; ++p ) {
                 ASSERT_TRUE( pq.push( *p ));
             }
             EXPECT_FALSE( pq.empty());
@@ -128,7 +128,7 @@ namespace {
             EXPECT_EQ( pq.size(), 0u );
 
             // clear_with test
-            for ( value_type * p = pFirst; p < pLast; ++p ) {
+            for ( p = pFirst; p < pLast; ++p ) {
                 ASSERT_TRUE( pq.push( *p ));
             }
             ASSERT_FALSE( pq.empty());