From a91bca7937e7f6ffdc84c998eade6d38fb08cbb9 Mon Sep 17 00:00:00 2001 From: Christopher Gilbert Date: Tue, 30 Aug 2016 16:13:21 +0100 Subject: Code review changes: stylistic changes, and removed redundant call to set locale. --- solc/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'solc') diff --git a/solc/main.cpp b/solc/main.cpp index bc8bdc81..ce787574 100644 --- a/solc/main.cpp +++ b/solc/main.cpp @@ -27,10 +27,11 @@ using namespace std; -void setEnv() { - std::setlocale(LC_ALL, "C"); +void setEnv() +{ #if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__) - if (!std::setlocale(LC_ALL, "")) { + if (!std::setlocale(LC_ALL, "")) + { setenv("LC_ALL", "C", 1); } #endif -- cgit v1.2.3