fix various flaws detected by PVS
This commit is contained in:
@@ -50,7 +50,7 @@ int QuantityFormat::defaultDenominator = 8; // for 1/8"
|
||||
|
||||
|
||||
QuantityFormat::QuantityFormat()
|
||||
: option(static_cast<NumberOption>(OmitGroupSeparator | RejectGroupSeparator))
|
||||
: option(OmitGroupSeparator | RejectGroupSeparator)
|
||||
, format(Fixed)
|
||||
, precision(UnitsApi::getDecimals())
|
||||
, denominator(defaultDenominator)
|
||||
|
||||
@@ -48,7 +48,8 @@ struct BaseExport QuantityFormat {
|
||||
Scientific = 2
|
||||
};
|
||||
|
||||
NumberOption option;
|
||||
typedef int NumberOptions;
|
||||
NumberOptions option;
|
||||
NumberFormat format;
|
||||
int precision;
|
||||
int denominator;
|
||||
|
||||
Reference in New Issue
Block a user