Skip to content

Commit

Permalink
Fixed error: 'FAH::Client::App::saveConfig' hides overloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Dec 30, 2023
1 parent a3b747a commit 7034bb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/fah/client/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ App::App() :
dns(base), client(base, dns, new SSLContext), server(new Server(*this)),
account(new Account(*this)), gpus(new GPUResources(*this)),
cores(new Cores(*this)),
saveConfigEvent(base.newEvent(this, &App::saveConfig, 0)) {
saveConfigEvent(base.newEvent(this, &App::saveGlobalConfig, 0)) {

// Info
Client::BuildInfo::addBuildInfo(getName().c_str());
Expand Down Expand Up @@ -500,4 +500,8 @@ void App::notify(const list<JSON::ValuePtr> &change) {


void App::signalEvent(Event::Event &, int, unsigned) {requestExit();}
void App::saveConfig() {getDB("config").set("config", getConfig()->toString());}


void App::saveGlobalConfig() {
getDB("config").set("config", getConfig()->toString());
}
2 changes: 1 addition & 1 deletion src/fah/client/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace FAH {

void signalEvent(cb::Event::Event &e, int signal, unsigned flags);

void saveConfig();
void saveGlobalConfig();
};
}
}

0 comments on commit 7034bb9

Please sign in to comment.