From 8b79c94af7f7cf2e5e5342294bc6e5a908cacabf Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 28 May 2016 13:22:38 +0200 Subject: use std::locale::global instead of setlocale We use a wild mixture of C and C++ ways of generating output, so having a consistent world-view in both styles sounds like a good idea and should help in preventing regressions. --- methods/rred.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'methods/rred.cc') diff --git a/methods/rred.cc b/methods/rred.cc index 79ab8cb52..51af37557 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -704,8 +703,7 @@ int main(int argc, char **argv) Patch patch; if (argc <= 1) { - RredMethod Mth; - return Mth.Run(); + return RredMethod().Run(); } // Usage: rred -t input output diff ... -- cgit v1.2.3