mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
update comments
This commit is contained in:
parent
09d463d666
commit
e2545e3337
1 changed files with 7 additions and 7 deletions
|
@ -863,14 +863,14 @@ void CCalcEngine::DisplayAnnounceBinaryOperator()
|
||||||
// we have this separate table to get its localized name and for its Inv function if it exists.
|
// we have this separate table to get its localized name and for its Inv function if it exists.
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
wstring degreeString; // index of string for the unary op function. Can be empty string, in which case it same as button name
|
wstring degreeString; // Used by default if there are no rad or grad specific strings.
|
||||||
wstring inverseDegreeString; // index of string for Inv of unary op. Can be empty string, in case it is same as idsFunc
|
wstring inverseDegreeString; // Will fall back to degreeString if empty
|
||||||
|
|
||||||
wstring radString; // index of string for the unary op function in rads. Can be empty string, in which case it same as button name
|
wstring radString;
|
||||||
wstring inverseRadString; // index of string for Inv of unary op in rads. Can be empty string, in case it is same as idsFunc
|
wstring inverseRadString; // Will fall back to radString if empty
|
||||||
|
|
||||||
wstring gradString; // index of string for the unary op function in grads. Can be empty string, in which case it same as button name
|
wstring gradString;
|
||||||
wstring inverseGradString; // index of string for Inv of unary op in grads. Can be empty string, in case it is same as idsFunc
|
wstring inverseGradString; // Will fall back to gradString if empty
|
||||||
|
|
||||||
bool hasAngleStrings = ((!radString.empty()) || (!inverseRadString.empty()) || (!gradString.empty()) || (!inverseGradString.empty()));
|
bool hasAngleStrings = ((!radString.empty()) || (!inverseRadString.empty()) || (!gradString.empty()) || (!inverseGradString.empty()));
|
||||||
} UFNE;
|
} UFNE;
|
||||||
|
@ -947,7 +947,7 @@ wstring_view CCalcEngine::OpCodeToUnaryString(int nOpCode, bool fInv, ANGLE_TYPE
|
||||||
return GetString(ids);
|
return GetString(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetString(IdStrFromCmdId(nOpCode));
|
return OpCodeToString(nOpCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CCalcEngine::IsCurrentTooBigForTrig()
|
bool CCalcEngine::IsCurrentTooBigForTrig()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue