stdcxx-commits mailing list archives

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

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

	* 23.list.assign.cpp (AssignRangePtrOverload): Removed a pointless
	const qualification from a cast to silence Intel C++ warning #191:
	type qualifier is meaningless on cast type.
	(AssignRangeOverload): Constified a local variable.

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

Modified: incubator/stdcxx/trunk/tests/containers/23.list.assign.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/containers/23.list.assign.cpp?rev=578541&r1=578540&r2=578541&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/containers/23.list.assign.cpp (original)
+++ incubator/stdcxx/trunk/tests/containers/23.list.assign.cpp Sat Sep 22 19:30:02 2007
@@ -246,9 +246,8 @@
     operator() (List &lst, 
                 const ContainerTestCaseData<ListVal>& tdata) const {
 
-        const ContainerTestCase &tcase = tdata.tcase_;
-
-        bool reverse_iter = ListIds::ReverseIterator == tdata.func_.iter_id_
+        const bool reverse_iter =
+               ListIds::ReverseIterator == tdata.func_.iter_id_
             || ListIds::ConstReverseIterator == tdata.func_.iter_id_;
 
         const std::size_t off = tdata.arglen_ - tdata.off2_ - tdata.ext2_;
@@ -284,8 +283,8 @@
         const ListVal* const beg = tdata.arg_ + tdata.off2_;
         const ListVal* const end = beg + tdata.ext2_;
 
-        const Iterator first = _RWSTD_CONST_CAST (const Iterator, beg);
-        const Iterator last  = _RWSTD_CONST_CAST (const Iterator, end);
+        const Iterator first = _RWSTD_CONST_CAST (Iterator, beg);
+        const Iterator last  = _RWSTD_CONST_CAST (Iterator, end);
 
         lst.assign (first, last);
         return lst;



Mime
View raw message