From 28f2a26519a128f843c82bd7a81744514be94c17 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 19 Mar 2004 20:07:55 +0000 Subject: [PATCH] 11.cc: Remove redundant static_cast-s. 2004-03-19 Paolo Carlini * 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 | 14 ++++++++++++++ .../testsuite/22_locale/num_get/get/char/11.cc | 4 ++-- .../testsuite/22_locale/num_get/get/char/12.cc | 4 ++-- .../testsuite/22_locale/num_get/get/char/13.cc | 4 ++-- .../testsuite/22_locale/num_get/get/char/14.cc | 2 +- .../testsuite/22_locale/num_get/get/char/15.cc | 4 ++-- .../testsuite/22_locale/num_get/get/wchar_t/11.cc | 4 ++-- .../testsuite/22_locale/num_get/get/wchar_t/12.cc | 4 ++-- .../testsuite/22_locale/num_get/get/wchar_t/13.cc | 4 ++-- .../testsuite/22_locale/num_get/get/wchar_t/14.cc | 2 +- .../testsuite/22_locale/num_get/get/wchar_t/15.cc | 4 ++-- 11 files changed, 32 insertions(+), 18 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e648e0a0f92..0f8d8f03675 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,17 @@ +2004-03-19 Paolo Carlini + + * 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 Petur Runolfsson 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 f9bd9331809..b1adeb9a8d8 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 1898867086f..75a8f4f3314 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 63cb008e850..216a4a10696 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 e2ce6daa5e8..90eb03110fa 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*>(new Punct))); + iss.imbue(locale(iss.getloc(), new Punct)); const num_get& ng = use_facet >(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 c550181d489..91ec714fdec 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 d056892856e..b53bb584f60 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 fa9cb15973c..e87e7ba3677 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 217695957b8..b0f694b75a7 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(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 fd5e55e2a9f..7be77c74145 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*>(new Punct))); + iss.imbue(locale(iss.getloc(), new Punct)); const num_get& ng = use_facet >(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 ef4d7b738d9..54cd76829b7 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*>(new Punct1))); - iss2.imbue(locale(iss2.getloc(), static_cast*>(new Punct2))); + iss1.imbue(locale(iss1.getloc(), new Punct1)); + iss2.imbue(locale(iss2.getloc(), new Punct2)); const num_get& ng1 = use_facet >(iss1.getloc()); const num_get& ng2 = use_facet >(iss2.getloc()); -- 2.30.2