diff options
11 files changed, 32 insertions, 18 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e648e0a..0f8d8f0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,18 @@ 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> PR libstdc++/12077 diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc index f9bd933..b1adeb9 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc index 1898867..75a8f4f 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc index 63cb008..216a4a1 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/13.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc index e2ce6da..90eb031 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/14.cc @@ -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; diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc index c550181..91ec714 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/15.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc index d056892..b53bb58 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc index fa9cb15..e87e7ba 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc index 2176959..b0f694b 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/13.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc index fd5e55e..7be77c7 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/14.cc @@ -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; diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc index ef4d7b7..54cd768 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/15.cc @@ -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()); |
