Secondary formatting changes (#489)
Description of the changes: Adjusted some of the values in .clang-format Add clang-format-all.ps1 Fix path to .clang-format in Calculator.sln How changes were validated: Manual.
This commit is contained in:
@@ -13,7 +13,9 @@ namespace Numbers
|
||||
ref class MemorySlot sealed : public Windows::UI::Xaml::Data::INotifyPropertyChanged
|
||||
{
|
||||
public:
|
||||
MemorySlot(int slotPosition, Platform::String ^ value) : m_SlotPosition(slotPosition), m_SlotValue(value)
|
||||
MemorySlot(int slotPosition, Platform::String ^ value)
|
||||
: m_SlotPosition(slotPosition)
|
||||
, m_SlotValue(value)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -35,7 +37,10 @@ namespace Numbers
|
||||
{
|
||||
public:
|
||||
StandardCalculatorViewModel()
|
||||
: m_DisplayValue("1234569"), m_DisplayStringExpression("14560 x 1890"), m_DegreeButtonContent("Deg"), m_IsMemoryEmpty(false)
|
||||
: m_DisplayValue("1234569")
|
||||
, m_DisplayStringExpression("14560 x 1890")
|
||||
, m_DegreeButtonContent("Deg")
|
||||
, m_IsMemoryEmpty(false)
|
||||
{
|
||||
m_MemorizedNumbers = ref new Platform::Collections::Vector<MemorySlot ^>();
|
||||
for (int i = 1000; i < 1100; i++)
|
||||
|
@@ -21,11 +21,15 @@ namespace Numbers
|
||||
ref class CategoryViewModel sealed : public Windows::UI::Xaml::Data::INotifyPropertyChanged
|
||||
{
|
||||
public:
|
||||
CategoryViewModel(Platform::String ^ name) : m_Name(name), m_NegateVisibility(Windows::UI::Xaml::Visibility::Collapsed)
|
||||
CategoryViewModel(Platform::String ^ name)
|
||||
: m_Name(name)
|
||||
, m_NegateVisibility(Windows::UI::Xaml::Visibility::Collapsed)
|
||||
{
|
||||
}
|
||||
|
||||
CategoryViewModel(Platform::String ^ name, Windows::UI::Xaml::Visibility negateVisibility) : m_Name(name), m_NegateVisibility(negateVisibility)
|
||||
CategoryViewModel(Platform::String ^ name, Windows::UI::Xaml::Visibility negateVisibility)
|
||||
: m_Name(name)
|
||||
, m_NegateVisibility(negateVisibility)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -39,7 +43,9 @@ namespace Numbers
|
||||
ref class UnitViewModel sealed : public Windows::UI::Xaml::Data::INotifyPropertyChanged
|
||||
{
|
||||
public:
|
||||
UnitViewModel(Platform::String ^ unit, Platform::String ^ abbr) : m_Name(unit), m_Abbreviation(abbr)
|
||||
UnitViewModel(Platform::String ^ unit, Platform::String ^ abbr)
|
||||
: m_Name(unit)
|
||||
, m_Abbreviation(abbr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -53,7 +59,8 @@ namespace Numbers
|
||||
ref class UnitConverterSupplementaryResultViewModel sealed : public Windows::UI::Xaml::Data::INotifyPropertyChanged
|
||||
{
|
||||
public:
|
||||
UnitConverterSupplementaryResultViewModel(Platform::String ^ value, Platform::String ^ unit, Platform::String ^ abbr) : m_Value(value)
|
||||
UnitConverterSupplementaryResultViewModel(Platform::String ^ value, Platform::String ^ unit, Platform::String ^ abbr)
|
||||
: m_Value(value)
|
||||
{
|
||||
m_Unit = ref new UnitViewModel(unit, abbr);
|
||||
}
|
||||
@@ -68,7 +75,11 @@ namespace Numbers
|
||||
ref class UnitConverterViewModel sealed : public Windows::UI::Xaml::Data::INotifyPropertyChanged
|
||||
{
|
||||
public:
|
||||
UnitConverterViewModel() : m_Value1("Åy24"), m_Value2("Åy183"), m_Value1Active(true), m_Value2Active(false)
|
||||
UnitConverterViewModel()
|
||||
: m_Value1("Åy24")
|
||||
, m_Value2("Åy183")
|
||||
, m_Value1Active(true)
|
||||
, m_Value2Active(false)
|
||||
{
|
||||
m_SupplementaryResults = ref new Platform::Collections::Vector<UnitConverterSupplementaryResultViewModel ^>();
|
||||
m_SupplementaryResults->Append(ref new UnitConverterSupplementaryResultViewModel("128", "Kilograms", "Kgs"));
|
||||
|
Reference in New Issue
Block a user