Skip to content

Commit

Permalink
refactor: Modify non-standard variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
glaumar committed Jun 22, 2024
1 parent dec2f8a commit 7326448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ AppSettings::AppSettings(QObject *parent)
, cache_path_(QStandardPaths::writableLocation(QStandardPaths::CacheLocation))
, data_path_(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation))
, keystore_path_(QString())
, last_wireless_addr(QString())
, last_wireless_addr_(QString())
{
loadAppSettings();
}
Expand Down Expand Up @@ -67,7 +67,7 @@ void AppSettings::loadAppSettings()
keystore_path_ = QStandardPaths::locate(QStandardPaths::AppDataLocation, "qrookie.keystore");
}

last_wireless_addr = settings_->value("last_wireless_addr", last_wireless_addr).toString();
last_wireless_addr_ = settings_->value("last_wireless_addr", last_wireless_addr_).toString();
}

void AppSettings::setAutoInstall(bool auto_install)
Expand Down Expand Up @@ -122,7 +122,7 @@ void AppSettings::setKeyStorePath(const QString &keystore_path)

void AppSettings::setLastWirelessAddr(const QString &addr)
{
last_wireless_addr = addr;
settings_->setValue("last_wireless_addr", last_wireless_addr);
last_wireless_addr_ = addr;
settings_->setValue("last_wireless_addr", last_wireless_addr_);
emit lastWirelessAddrChanged(addr);
}
4 changes: 2 additions & 2 deletions src/app_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class AppSettings : public QObject

QString lastWirelessAddr() const
{
return last_wireless_addr;
return last_wireless_addr_;
}
void setLastWirelessAddr(const QString &addr);

Expand All @@ -99,7 +99,7 @@ class AppSettings : public QObject
QString cache_path_;
QString data_path_;
QString keystore_path_;
QString last_wireless_addr;
QString last_wireless_addr_;
};

#endif /* QROOKIE_APP_SETTINGS */

0 comments on commit 7326448

Please sign in to comment.