Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao committed Dec 3, 2024
1 parent 451334e commit c34cdda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/inc/drogon/utils/Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,11 @@ DROGON_EXPORT char *getHttpFullDate(
const trantor::Date &date = trantor::Date::now());

DROGON_EXPORT std::string getHttpFullDateStr(
const trantor::Date &date = trantor::Date::now());
const trantor::Date &date = trantor::Date::now());

DROGON_EXPORT void datetoCustomFormattedString(const std::string &fmtStr,
std::string &str,
const trantor::Date &date);
std::string &str,
const trantor::Date &date);
/// Get the trantor::Date object according to the http full date string
/**
* Returns trantor::Date(std::numeric_limits<int64_t>::max()) upon failure.
Expand Down
4 changes: 3 additions & 1 deletion lib/src/Utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,9 @@ std::string getHttpFullDateStr(const trantor::Date &date)
return lastTimeString;
}
lastSecond = nowSecond;
datetoCustomFormattedString("%a, %d %b %Y %H:%M:%S GMT", lastTimeString, date);
datetoCustomFormattedString("%a, %d %b %Y %H:%M:%S GMT",
lastTimeString,
date);
return lastTimeString;
}

Expand Down

0 comments on commit c34cdda

Please sign in to comment.