Skip to content

Commit

Permalink
Remove null check
Browse files Browse the repository at this point in the history
  • Loading branch information
nkottary committed Nov 6, 2020
1 parent a2ef888 commit 9ed8ad9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/numformatter.cpp
Expand Up @@ -185,10 +185,7 @@ bool wxNumberFormatter::GetThousandsSeparatorAndGroupingIfUsed(wxChar *sep, wxSt
if ( s.length() == 1 )
{
s_thousandsSeparator = s[0];
const wxString
g = wxLocale::GetInfo(wxLOCALE_GROUPING, wxLOCALE_CAT_NUMBER);
if ( g[0] != '\0')
s_grouping = g;
s_grouping = wxLocale::GetInfo(wxLOCALE_GROUPING, wxLOCALE_CAT_NUMBER);
}
//else: Unlike above it's perfectly fine for the thousands separator to
// be empty if grouping is not used, so just leave it as 0.
Expand Down

0 comments on commit 9ed8ad9

Please sign in to comment.