mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Merge remote-tracking branch 'upstream/master' into FixIssuesWithEquKey
This commit is contained in:
commit
8b140e5f52
4 changed files with 7 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
|||
#include "Header Files/CalcEngine.h"
|
||||
#include "Header Files/Rational.h"
|
||||
|
||||
class CParentheses : public IParenthesisCommand
|
||||
class CParentheses final : public IParenthesisCommand
|
||||
{
|
||||
public:
|
||||
CParentheses(_In_ int command);
|
||||
|
@ -18,7 +18,7 @@ private:
|
|||
int m_command;
|
||||
};
|
||||
|
||||
class CUnaryCommand : public IUnaryCommand
|
||||
class CUnaryCommand final : public IUnaryCommand
|
||||
{
|
||||
public:
|
||||
CUnaryCommand(int command);
|
||||
|
@ -33,7 +33,7 @@ private:
|
|||
std::shared_ptr<CalculatorVector<int>> m_command;
|
||||
};
|
||||
|
||||
class CBinaryCommand : public IBinaryCommand
|
||||
class CBinaryCommand final : public IBinaryCommand
|
||||
{
|
||||
public:
|
||||
CBinaryCommand(int command);
|
||||
|
@ -46,7 +46,7 @@ private:
|
|||
int m_command;
|
||||
};
|
||||
|
||||
class COpndCommand : public IOpndCommand
|
||||
class COpndCommand final : public IOpndCommand
|
||||
{
|
||||
public:
|
||||
COpndCommand(
|
||||
|
|
|
@ -158,7 +158,6 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map<ViewMode, vector<Order
|
|||
{
|
||||
// US + Federated States of Micronesia, Marshall Islands, Palau
|
||||
bool useUSCustomaryAndFahrenheit = m_currentRegionCode == L"US" ||
|
||||
m_currentRegionCode == L"PW" ||
|
||||
m_currentRegionCode == L"FM" ||
|
||||
m_currentRegionCode == L"MH" ||
|
||||
m_currentRegionCode == L"PW";
|
||||
|
|
|
@ -488,7 +488,7 @@ void StandardCalculatorViewModel::HandleUpdatedOperandData(Command cmdenum)
|
|||
m_selectedExpressionLastData = L"";
|
||||
if (ch == 'x')
|
||||
{
|
||||
temp = L'\0';
|
||||
temp[0] = L'\0';
|
||||
commandIndex = 0;
|
||||
}
|
||||
else
|
||||
|
@ -505,7 +505,7 @@ void StandardCalculatorViewModel::HandleUpdatedOperandData(Command cmdenum)
|
|||
{
|
||||
if (commandIndex == 0)
|
||||
{
|
||||
delete temp;
|
||||
delete [] temp;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -553,7 +553,7 @@ bool StandardCalculatorViewModel::IsOperator(Command cmdenum)
|
|||
{
|
||||
if ((cmdenum == Command::Command0) || (cmdenum == Command::Command1) || (cmdenum == Command::Command2) || (cmdenum == Command::Command3) || (cmdenum == Command::Command4) || (cmdenum == Command::Command5)
|
||||
|| (cmdenum == Command::Command6) || (cmdenum == Command::Command7) || (cmdenum == Command::Command8) || (cmdenum == Command::Command9) || (cmdenum == Command::CommandPNT) || (cmdenum == Command::CommandBACK)
|
||||
|| (cmdenum == Command::CommandEXP) || (cmdenum == Command::CommandFE) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeProgrammer) || (cmdenum == Command::ModeScientific)
|
||||
|| (cmdenum == Command::CommandEXP) || (cmdenum == Command::CommandFE) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeProgrammer) || (cmdenum == Command::ModeScientific)
|
||||
|| (cmdenum == Command::CommandINV) || (cmdenum == Command::CommandCENTR) || (cmdenum == Command::CommandDEG) || (cmdenum == Command::CommandRAD) || (cmdenum == Command::CommandGRAD)
|
||||
|| ((cmdenum >= Command::CommandBINEDITSTART) && (cmdenum <= Command::CommandBINEDITEND)))
|
||||
{
|
||||
|
|
|
@ -30,7 +30,6 @@ CalculatorProgrammerBitFlipPanel::CalculatorProgrammerBitFlipPanel() :
|
|||
{
|
||||
InitializeComponent();
|
||||
auto booleanToVisibilityConverter = ref new Converters::BooleanToVisibilityConverter;
|
||||
auto booleanToVisibilityNegationConverter = ref new Converters::BooleanToVisibilityNegationConverter;
|
||||
SetVisibilityBinding(BitFlipPanel, L"IsBinaryBitFlippingEnabled", booleanToVisibilityConverter);
|
||||
|
||||
AssignFlipButtons();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue