Clang-format most of the sources (#1467)
This commit is contained in:
committed by
GitHub
parent
f7d0118064
commit
f30e9494ce
@@ -43,7 +43,7 @@ namespace
|
||||
ApplicationViewModel::ApplicationViewModel()
|
||||
: m_CalculatorViewModel(nullptr)
|
||||
, m_DateCalcViewModel(nullptr)
|
||||
, m_GraphingCalcViewModel(nullptr)
|
||||
, m_GraphingCalcViewModel(nullptr)
|
||||
, m_ConverterViewModel(nullptr)
|
||||
, m_PreviousMode(ViewMode::None)
|
||||
, m_mode(ViewMode::None)
|
||||
|
@@ -77,6 +77,5 @@ public
|
||||
static NarratorAnnouncement ^ GetAlwaysOnTopChangedAnnouncement(Platform::String ^ announcement);
|
||||
|
||||
static NarratorAnnouncement ^ GetBitShiftRadioButtonCheckedAnnouncement(Platform::String ^ announcement);
|
||||
|
||||
};
|
||||
}
|
||||
|
@@ -94,33 +94,33 @@ public
|
||||
Byte = (int)CM::Command::CommandByte,
|
||||
Cube = (int)CM::Command::CommandCUB,
|
||||
DMS = (int)CM::Command::CommandDMS,
|
||||
Hyp = (int) CM::Command::CommandHYP,
|
||||
Sec = (int) CM::Command::CommandSEC,
|
||||
Csc = (int) CM::Command::CommandCSC,
|
||||
Cot = (int) CM::Command::CommandCOT,
|
||||
InvSec = (int) CM::Command::CommandASEC,
|
||||
InvCsc = (int) CM::Command::CommandACSC,
|
||||
InvCot = (int) CM::Command::CommandACOT,
|
||||
Sech = (int) CM::Command::CommandSECH,
|
||||
Csch = (int) CM::Command::CommandCSCH,
|
||||
Coth = (int) CM::Command::CommandCOTH,
|
||||
InvSech = (int) CM::Command::CommandASECH,
|
||||
InvCsch = (int) CM::Command::CommandACSCH,
|
||||
InvCoth = (int) CM::Command::CommandACOTH,
|
||||
CubeRoot = (int) CM::Command::CommandCUBEROOT,
|
||||
TwoPowerX = (int) CM::Command::CommandPOW2,
|
||||
LogBaseY = (int) CM::Command::CommandLogBaseY,
|
||||
Nand = (int) CM::Command::CommandNand,
|
||||
Nor = (int) CM::Command::CommandNor,
|
||||
Abs = (int) CM::Command::CommandAbs,
|
||||
Floor = (int) CM::Command::CommandFloor,
|
||||
Ceil = (int) CM::Command::CommandCeil,
|
||||
Rand = (int) CM::Command::CommandRand,
|
||||
Euler = (int) CM::Command::CommandEuler,
|
||||
Hyp = (int)CM::Command::CommandHYP,
|
||||
Sec = (int)CM::Command::CommandSEC,
|
||||
Csc = (int)CM::Command::CommandCSC,
|
||||
Cot = (int)CM::Command::CommandCOT,
|
||||
InvSec = (int)CM::Command::CommandASEC,
|
||||
InvCsc = (int)CM::Command::CommandACSC,
|
||||
InvCot = (int)CM::Command::CommandACOT,
|
||||
Sech = (int)CM::Command::CommandSECH,
|
||||
Csch = (int)CM::Command::CommandCSCH,
|
||||
Coth = (int)CM::Command::CommandCOTH,
|
||||
InvSech = (int)CM::Command::CommandASECH,
|
||||
InvCsch = (int)CM::Command::CommandACSCH,
|
||||
InvCoth = (int)CM::Command::CommandACOTH,
|
||||
CubeRoot = (int)CM::Command::CommandCUBEROOT,
|
||||
TwoPowerX = (int)CM::Command::CommandPOW2,
|
||||
LogBaseY = (int)CM::Command::CommandLogBaseY,
|
||||
Nand = (int)CM::Command::CommandNand,
|
||||
Nor = (int)CM::Command::CommandNor,
|
||||
Abs = (int)CM::Command::CommandAbs,
|
||||
Floor = (int)CM::Command::CommandFloor,
|
||||
Ceil = (int)CM::Command::CommandCeil,
|
||||
Rand = (int)CM::Command::CommandRand,
|
||||
Euler = (int)CM::Command::CommandEuler,
|
||||
RshL = (int)CM::Command::CommandRSHFL,
|
||||
RolC = (int)CM::Command::CommandROLC,
|
||||
RorC = (int)CM::Command::CommandRORC,
|
||||
|
||||
|
||||
BINSTART = (int)CM::Command::CommandBINEDITSTART,
|
||||
BINPOS0 = (int)CM::Command::CommandBINPOS0,
|
||||
BINPOS1 = (int)CM::Command::CommandBINPOS1,
|
||||
|
@@ -118,7 +118,7 @@ public
|
||||
Platform::String ^ operand,
|
||||
CalculatorApp::Common::ViewMode mode,
|
||||
CalculatorApp::Common::CategoryGroupType modeType,
|
||||
CalculatorApp::Common::NumberBase programmerNumberBase);
|
||||
CalculatorApp::Common::NumberBase programmerNumberBase);
|
||||
static ULONG32 ProgrammerOperandLength(Platform::String ^ operand, CalculatorApp::Common::NumberBase numberBase);
|
||||
|
||||
private:
|
||||
|
@@ -62,7 +62,7 @@ LocalizationService ^ LocalizationService::GetInstance()
|
||||
/// <remarks>
|
||||
/// Should only be used for test purpose
|
||||
/// </remarks>
|
||||
void LocalizationService::OverrideWithLanguage(_In_ const wchar_t * const language)
|
||||
void LocalizationService::OverrideWithLanguage(_In_ const wchar_t* const language)
|
||||
{
|
||||
s_singletonInstance = ref new LocalizationService(language);
|
||||
}
|
||||
|
@@ -256,7 +256,7 @@ namespace CalculatorApp
|
||||
std::wstring destination;
|
||||
std::copy_if(
|
||||
begin(source), end(source), std::back_inserter(destination), [this](auto const c) { return c != L' ' && c != m_numberGroupSeparator; });
|
||||
|
||||
|
||||
return ref new Platform::String(destination.c_str());
|
||||
}
|
||||
|
||||
|
@@ -295,7 +295,7 @@ void NavCategory::InitializeCategoryManifest(User ^ user)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This function should only be used when storing the mode to app data.
|
||||
int NavCategory::Serialize(ViewMode mode)
|
||||
@@ -347,8 +347,9 @@ bool NavCategory::IsValidViewMode(ViewMode mode)
|
||||
|
||||
bool NavCategory::IsViewModeEnabled(ViewMode mode)
|
||||
{
|
||||
auto iter =
|
||||
find_if(begin(s_categoryManifest), end(s_categoryManifest), [mode](const NavCategoryInitializer& initializer) { return initializer.viewMode == mode && initializer.isEnabled; });
|
||||
auto iter = find_if(begin(s_categoryManifest), end(s_categoryManifest), [mode](const NavCategoryInitializer& initializer) {
|
||||
return initializer.viewMode == mode && initializer.isEnabled;
|
||||
});
|
||||
|
||||
return iter != s_categoryManifest.end();
|
||||
}
|
||||
|
@@ -241,7 +241,6 @@ namespace Utils
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// Regular DependencyProperty
|
||||
template <typename TOwner, typename TType>
|
||||
Windows::UI::Xaml::DependencyProperty^ RegisterDependencyProperty(
|
||||
|
@@ -89,7 +89,7 @@ namespace CalculatorApp
|
||||
}
|
||||
}
|
||||
|
||||
CurrencyDataLoader::CurrencyDataLoader(_In_ unique_ptr<ICurrencyHttpClient> client, const wchar_t * forcedResponseLanguage)
|
||||
CurrencyDataLoader::CurrencyDataLoader(_In_ unique_ptr<ICurrencyHttpClient> client, const wchar_t* forcedResponseLanguage)
|
||||
: m_client(move(client))
|
||||
, m_loadStatus(CurrencyLoadStatus::NotLoaded)
|
||||
, m_responseLanguage(L"en-US")
|
||||
|
Reference in New Issue
Block a user