Skip to content

Commit aa9bb08

Browse files
committed
chore: make const
1 parent 2289971 commit aa9bb08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CommonLibSF/include/RE/I/INISettingCollection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace RE
3333
template <class T>
3434
T GetSetting(const std::string_view a_name, T a_fallback, const bool a_default = false)
3535
{
36-
if (auto setting = GetSetting(a_name)) {
36+
if (const auto setting = GetSetting(a_name)) {
3737
return setting->GetValue(a_fallback, a_default);
3838
}
3939

@@ -43,7 +43,7 @@ namespace RE
4343
template <class T>
4444
bool SetSetting(const std::string_view a_name, T a_value)
4545
{
46-
if (auto setting = GetSetting(a_name)) {
46+
if (const auto setting = GetSetting(a_name)) {
4747
return setting->SetValue(a_value);
4848
}
4949

CommonLibSF/include/RE/R/RegSettingCollection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace RE
3333
template <class T>
3434
T GetSetting(const std::string_view a_name, T a_fallback, const bool a_default = false)
3535
{
36-
if (auto setting = GetSetting(a_name)) {
36+
if (const auto setting = GetSetting(a_name)) {
3737
return setting->GetValue(a_fallback, a_default);
3838
}
3939

@@ -43,7 +43,7 @@ namespace RE
4343
template <class T>
4444
bool SetSetting(const std::string_view a_name, T a_value)
4545
{
46-
if (auto setting = GetSetting(a_name)) {
46+
if (const auto setting = GetSetting(a_name)) {
4747
return setting->SetValue(a_value);
4848
}
4949

0 commit comments

Comments
 (0)