mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
Returning a const-qualified prvalue doesn't do anything useful, but it does turn an assignment such as `v = rb.getLocale();` from a move-assignment into a copy-assignment (because it's forbidden to move-from a const value, even if it's a const prvalue). Each affected site was diagnosed mechanically by my fork of Clang. E.g.: warning: 'const' type qualifier on return type is a bad idea [-Wqual-class-return-type] 391 | const Locale ResourceBundle::getLocale(ULocDataLocaleType type, UErrorCode &status) const | ^~~~~ |
||
---|---|---|
.. | ||
unicode | ||
ctest.c | ||
ctestfw.vcxproj | ||
ctestfw.vcxproj.filters | ||
datamap.cpp | ||
Makefile.in | ||
sources.txt | ||
testdata.cpp | ||
tstdtmod.cpp | ||
ucln_ct.c | ||
uperf.cpp |