Skip to content

Commit 410c575

Browse files
committed
Address PR comment
1 parent 5259292 commit 410c575

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

dev/MRTCore/mrt/Microsoft.Windows.ApplicationModel.Resources/src/ApplicationLanguages.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ namespace winrt::Microsoft::Windows::ApplicationModel::Resources::implementation
99
{
1010
hstring ApplicationLanguages::m_language;
1111

12-
void ApplicationLanguages::PrimaryLanguageOverride(hstring language)
13-
{
14-
m_language = language;
15-
}
16-
1712
hstring ApplicationLanguages::PrimaryLanguageOverride()
1813
{
1914
return m_language;
2015
}
2116

17+
void ApplicationLanguages::PrimaryLanguageOverride(hstring const& language)
18+
{
19+
m_language = language;
20+
}
2221
} // namespace winrt::Microsoft::Windows::ApplicationModel::Resources::implementation

dev/MRTCore/mrt/Microsoft.Windows.ApplicationModel.Resources/src/ApplicationLanguages.h

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,21 @@
66

77
namespace winrt::Microsoft::Windows::ApplicationModel::Resources::implementation
88
{
9+
struct ApplicationLanguages
10+
{
11+
ApplicationLanguages() = delete;
912

10-
struct ApplicationLanguages
11-
{
12-
ApplicationLanguages() = delete;
13-
14-
static void PrimaryLanguageOverride(hstring language);
15-
static hstring PrimaryLanguageOverride();
16-
17-
private:
18-
static hstring m_language;
19-
};
13+
static hstring PrimaryLanguageOverride();
14+
static void PrimaryLanguageOverride(hstring const& language);
2015

16+
private:
17+
static hstring m_language;
18+
};
2119
} // namespace winrt::Microsoft::Windows::ApplicationModel::Resources::implementation
2220

2321
namespace winrt::Microsoft::Windows::ApplicationModel::Resources::factory_implementation
2422
{
2523
struct ApplicationLanguages : ApplicationLanguagesT<ApplicationLanguages, implementation::ApplicationLanguages>
2624
{
2725
};
28-
}
29-
// namespace winrt::Microsoft::Windows::ApplicationModel::Resources::factory_implementation
26+
} // winrt::Microsoft::Windows::ApplicationModel::Resources::factory_implementation

0 commit comments

Comments
 (0)