Fix for lvalue ref trying to bind to a rvalue

This commit is contained in:
KimLS 2019-05-11 00:10:47 -07:00
parent 63198d974e
commit 0eeb73b436
2 changed files with 4 additions and 4 deletions

View File

@ -9509,7 +9509,7 @@ void command_netstats(Client *c, const Seperator *sep)
}
auto connection = c->Connection();
auto &opts = connection->GetManager()->GetOptions();
auto opts = connection->GetManager()->GetOptions();
auto eqs_stats = connection->GetStats();
auto &stats = eqs_stats.DaybreakStats;
auto now = EQ::Net::Clock::now();
@ -12236,7 +12236,7 @@ void command_network(Client *c, const Seperator *sep)
{
auto eqsi = c->Connection();
auto manager = eqsi->GetManager();
auto &opts = manager->GetOptions();
auto opts = manager->GetOptions();
if (!strcasecmp(sep->arg[2], "all"))
{
@ -12294,7 +12294,7 @@ void command_network(Client *c, const Seperator *sep)
{
auto eqsi = c->Connection();
auto manager = eqsi->GetManager();
auto &opts = manager->GetOptions();
auto opts = manager->GetOptions();
if (!strcasecmp(sep->arg[3], ""))
{

View File

@ -657,7 +657,7 @@ void callGetPacketStatistics(Json::Value &response)
for (auto &iter : list) {
auto client = iter.second;
auto connection = client->Connection();
auto &opts = connection->GetManager()->GetOptions();
auto opts = connection->GetManager()->GetOptions();
auto eqs_stats = connection->GetStats();
auto &stats = eqs_stats.DaybreakStats;
auto now = EQ::Net::Clock::now();