]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
11.cc: Remove redundant static_cast-s.
authorPaolo Carlini <pcarlini@suse.de>
Fri, 19 Mar 2004 20:07:55 +0000 (20:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 19 Mar 2004 20:07:55 +0000 (20:07 +0000)
2004-03-19  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
static_cast-s.
* testsuite/22_locale/num_get/get/char/12.cc: Likewise.
* testsuite/22_locale/num_get/get/char/13.cc: Likewise.
* testsuite/22_locale/num_get/get/char/14.cc: Likewise.
* testsuite/22_locale/num_get/get/char/15.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.

From-SVN: r79698

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc

index e648e0a0f9254f30392ccc9589f13beabdf81f60..0f8d8f03675d1f323b1504779d926a89ccd4305b 100644 (file)
@@ -1,3 +1,17 @@
+2004-03-19  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
+       static_cast-s.
+       * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
+       * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
+       * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
+       * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
+       * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
+       * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
+       * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
+       * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
+       * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
+
 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
            Petur Runolfsson  <peturr02@ru.is>
 
index f9bd933180982bfd79d6e6be2adf1b4bae66f808..b1adeb9a8d882820c35d6dd603f9f2df2793f03f 100644 (file)
@@ -45,8 +45,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   istringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<char>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<char>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<char>& ng1 = use_facet<num_get<char> >(iss1.getloc()); 
   const num_get<char>& ng2 = use_facet<num_get<char> >(iss2.getloc()); 
 
index 1898867086f4281f736701cf7ab54ddd6f90f33c..75a8f4f3314d70566f39c4e9e1562f790b7551e5 100644 (file)
@@ -47,8 +47,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   istringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<char>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<char>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<char>& ng1 = use_facet<num_get<char> >(iss1.getloc()); 
   const num_get<char>& ng2 = use_facet<num_get<char> >(iss2.getloc()); 
 
index 63cb008e8500ef93abe84aa2e53238af369503c5..216a4a10696f733a3f031c413a999747dbb3e600 100644 (file)
@@ -39,8 +39,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   istringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<char>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<char>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<char>& ng1 = use_facet<num_get<char> >(iss1.getloc()); 
   const num_get<char>& ng2 = use_facet<num_get<char> >(iss2.getloc()); 
 
index e2ce6daa5e866d32f4a63a7565660807aa45be33..90eb03110fab808d5ae1ed36b7d22ab4ba18efa6 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   istringstream iss;
-  iss.imbue(locale(iss.getloc(), static_cast<numpunct<char>*>(new Punct)));
+  iss.imbue(locale(iss.getloc(), new Punct));
   const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc()); 
 
   ios_base::iostate err = ios_base::goodbit;
index c550181d4894536c340db876a9d40005213a4bf5..91ec714fdec38874618f3e6c80939c7cde7cdd71 100644 (file)
@@ -44,8 +44,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   istringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<char>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<char>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<char>& ng1 = use_facet<num_get<char> >(iss1.getloc()); 
   const num_get<char>& ng2 = use_facet<num_get<char> >(iss2.getloc()); 
 
index d056892856eb692ef56e79027a2df69d96025b6f..b53bb584f6054dd5636e0beec55669ab7d2ec7b9 100644 (file)
@@ -45,8 +45,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   wistringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<wchar_t>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<wchar_t>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<wchar_t>& ng1 = use_facet<num_get<wchar_t> >(iss1.getloc()); 
   const num_get<wchar_t>& ng2 = use_facet<num_get<wchar_t> >(iss2.getloc()); 
 
index fa9cb15973c317589962fb3cf63673d9b58b692b..e87e7ba3677cfb1cc7c4b64cb91cd5e54a0cdf15 100644 (file)
@@ -47,8 +47,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   wistringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<wchar_t>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<wchar_t>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<wchar_t>& ng1 = use_facet<num_get<wchar_t> >(iss1.getloc()); 
   const num_get<wchar_t>& ng2 = use_facet<num_get<wchar_t> >(iss2.getloc()); 
 
index 217695957b8cee64d9afdd1f414eb2c58ec44aee..b0f694b75a799359c4bc0b7e7d5ec80ffe1a98de 100644 (file)
@@ -39,8 +39,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   wistringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<wchar_t>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<wchar_t>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<wchar_t>& ng1 = use_facet<num_get<wchar_t> >(iss1.getloc()); 
   const num_get<wchar_t>& ng2 = use_facet<num_get<wchar_t> >(iss2.getloc()); 
 
index fd5e55e2a9fcb8279e7781298c4a02aa3b48bffb..7be77c7414502ee1c15e4379e2c88b333c423843 100644 (file)
@@ -37,7 +37,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   wistringstream iss;
-  iss.imbue(locale(iss.getloc(), static_cast<numpunct<wchar_t>*>(new Punct)));
+  iss.imbue(locale(iss.getloc(), new Punct));
   const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc()); 
 
   ios_base::iostate err = ios_base::goodbit;
index ef4d7b738d9ae7ec227ee0bc2eb4111b460d5215..54cd76829b71b7dbed1ba54fccf010d63988acbd 100644 (file)
@@ -44,8 +44,8 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   wistringstream iss1, iss2;
-  iss1.imbue(locale(iss1.getloc(), static_cast<numpunct<wchar_t>*>(new Punct1)));
-  iss2.imbue(locale(iss2.getloc(), static_cast<numpunct<wchar_t>*>(new Punct2)));
+  iss1.imbue(locale(iss1.getloc(), new Punct1));
+  iss2.imbue(locale(iss2.getloc(), new Punct2));
   const num_get<wchar_t>& ng1 = use_facet<num_get<wchar_t> >(iss1.getloc()); 
   const num_get<wchar_t>& ng2 = use_facet<num_get<wchar_t> >(iss2.getloc());