This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Boring testsuite/22_locale/num_get clean up


Hi,

totally boring, in fact, but overdue.

Tested x86-linux.

Paolo.

///////////////
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.
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/11.cc libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/11.cc	2003-12-31 09:28:10.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc	2004-03-19 20:43:37.000000000 +0100
@@ -45,8 +45,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/12.cc libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/12.cc	2003-12-22 12:00:42.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc	2004-03-19 20:43:52.000000000 +0100
@@ -47,8 +47,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/13.cc libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/13.cc	2003-12-30 11:43:54.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc	2004-03-19 20:44:08.000000000 +0100
@@ -39,8 +39,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/14.cc libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/14.cc	2004-02-28 21:37:54.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc	2004-03-19 20:44:21.000000000 +0100
@@ -37,7 +37,7 @@
   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;
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/15.cc libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/char/15.cc	2004-03-01 11:31:33.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc	2004-03-19 20:44:41.000000000 +0100
@@ -44,8 +44,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/11.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/11.cc	2003-12-31 09:28:10.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc	2004-03-19 20:45:11.000000000 +0100
@@ -45,8 +45,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/12.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/12.cc	2003-12-22 12:00:42.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc	2004-03-19 20:45:27.000000000 +0100
@@ -47,8 +47,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/13.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/13.cc	2003-12-30 11:43:54.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc	2004-03-19 20:45:42.000000000 +0100
@@ -39,8 +39,8 @@
   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()); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/14.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/14.cc	2004-02-28 21:37:54.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc	2004-03-19 20:45:54.000000000 +0100
@@ -37,7 +37,7 @@
   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;
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/15.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get/get/wchar_t/15.cc	2004-03-01 11:31:33.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc	2004-03-19 20:46:12.000000000 +0100
@@ -44,8 +44,8 @@
   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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]