Skip to content

Commit 240d695

Browse files
committed
Fix clang tidy warnings
1 parent af60c9d commit 240d695

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

quickevent/app/quickevent/plugins/Event/src/services/ofeed/ofeedclient.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ void OFeedClient::getChangesByOrigin()
636636
variables["since"] = last_changelog_call_value.toString(Qt::ISODate);
637637
}
638638

639-
sendGraphQLRequest(graphQLquery, variables, [=, this](QJsonObject data)
639+
sendGraphQLRequest(graphQLquery, variables, [this](QJsonObject data)
640640
{
641641
if (!data.isEmpty())
642642
{
@@ -815,7 +815,7 @@ void OFeedClient::processNewRunner(int ofeed_competitor_id)
815815

816816
QJsonObject variables;
817817
variables["competitorByIdId"] = ofeed_competitor_id;
818-
sendGraphQLRequest(graphQLquery, variables, [=, this](QJsonObject data)
818+
sendGraphQLRequest(graphQLquery, variables, [this, ofeed_competitor_id](QJsonObject data)
819819
{
820820
if (!data.isEmpty())
821821
{
@@ -913,7 +913,8 @@ void OFeedClient::storeChange(const QJsonObject &change)
913913
}
914914
}
915915

916-
static QString getIofResultStatus(
916+
namespace {
917+
QString getIofResultStatus(
917918
int time,
918919
bool is_disq,
919920
bool is_disq_by_organizer,
@@ -955,10 +956,11 @@ static QString getIofResultStatus(
955956
return "Inactive"; // Inactive as default status
956957
}
957958

958-
static QString datetime_to_string(const QDateTime &dt)
959+
QString datetime_to_string(const QDateTime &dt)
959960
{
960961
return quickevent::core::Utils::dateTimeToIsoStringWithUtcOffset(dt);
961962
}
963+
}
962964

963965
void OFeedClient::onCompetitorAdded(int competitor_id)
964966
{

0 commit comments

Comments
 (0)