Skip to content

Commit

Permalink
Corrected formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
david-puglielli committed May 13, 2019
1 parent 06ff53d commit 1aa8dea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source/shared/localizationimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,16 @@ SystemLocale::SystemLocale( const char * localeName )
{
const char* DEFAULT_LOCALE = "en_US.UTF-8";

try
{
try {
m_pLocale = new std::locale(localeName);
}
catch(const std::exception& e)
{
catch(const std::exception& e) {
localeName = DEFAULT_LOCALE;
}

if(!m_pLocale)
if(!m_pLocale) {
m_pLocale = new std::locale(localeName);

}

// Mapping from locale charset to codepage
struct LocaleCP
Expand Down

0 comments on commit 1aa8dea

Please sign in to comment.