stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r578547 - /incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp
Date Sun, 23 Sep 2007 02:37:11 GMT
Author: sebor
Date: Sat Sep 22 19:37:10 2007
New Revision: 578547

URL: http://svn.apache.org/viewvc?rev=578547&view=rev
Log:
2007-09-22  Martin Sebor  <sebor@roguewave.com>

	* 23.list.insert.cpp (InsertRange, InsertRangeOverload): Removed
	an unused local vaiable to silence a gcc warning: unused variable.
	(InsertRangePtrOverload): Removed const qualification from a const
	cast to silence Intel C++ warning warning #191: type qualifier is
	meaningless on cast type.

Modified:
    incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp

Modified: incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp?rev=578547&r1=578546&r2=578547&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp (original)
+++ incubator/stdcxx/trunk/tests/containers/23.list.insert.cpp Sat Sep 22 19:37:10 2007
@@ -383,8 +383,6 @@
     operator() (List &lst, 
                 const ContainerTestCaseData<ListVal>& tdata) const {
 
-        const ContainerTestCase &tcase = tdata.tcase_;
-
         // create a pair of iterators into the list object being modified
         ListIter first1 (lst.begin ());
         _rw_advance (first1, tdata.off1_);
@@ -415,8 +413,6 @@
     operator() (List &lst, 
                 const ContainerTestCaseData<ListVal>& tdata) const {
 
-        const ContainerTestCase &tcase = tdata.tcase_;
-
         // create a pair of iterators into the list object being modified
         ListIter first1 (lst.begin ());
         _rw_advance (first1, tdata.off1_);
@@ -460,16 +456,14 @@
     operator() (List& lst,
                 const ContainerTestCaseData<ListVal>& tdata) const {
 
-        const ContainerTestCase &tcase = tdata.tcase_;
-
         ListIter first1 (lst.begin ());
         _rw_advance (first1, tdata.off1_);
 
         const ListVal* const beg = tdata.arg_ + tdata.off2_;
         const ListVal* const end = beg + tdata.ext2_;
 
-        const Iterator first2 = _RWSTD_CONST_CAST (const Iterator, beg);
-        const Iterator last2  = _RWSTD_CONST_CAST (const Iterator, end);
+        const Iterator first2 = _RWSTD_CONST_CAST (Iterator, beg);
+        const Iterator last2  = _RWSTD_CONST_CAST (Iterator, end);
 
         lst.insert (first1, first2, last2);
         return lst;



Mime
View raw message