summaryrefslogtreecommitdiffstats
path: root/src/corelib/qtcore.tracepoints
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-01-24 16:01:33 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-02-03 15:33:33 +0100
commite0f9b57462226b4f5842d1e857612d6c8fbe38fd (patch)
tree35f242d41b521a4e0181b52ac5f20e2cc751d5fd /src/corelib/qtcore.tracepoints
parent2d265dce58d26047f196d79eabfe41edab45c799 (diff)
qlocale_win.cpp: distinguish empty QString from null QVariant
An empty string, when packaged as a QVariant, is non-null (as a QVariant); and QSystemLocale::query()'s callers care about the difference. Some callers of the internal getLocaleInfo(LCTYPE type, int maxlen) need an actual QString return, while others are what query() returns, so need to return a QVariant; where the former want an empty string, the latter need a null QVariant. So make that getLocaleInfo() into a template, so callers can chose QString or QVariant as return type, only affecting the failure returns. Change-Id: I7b9a698badedc0e0d8aef8c6e85c22931c33297a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/qtcore.tracepoints')
0 files changed, 0 insertions, 0 deletions