Compare commits

..
Author SHA1 Message Date
admin efc8c502e5 Mark map info calculation nodiscard 2026-06-23 17:30:20 -07:00
2 changed files with 2 additions and 2 deletions
@@ -18,7 +18,7 @@ struct alignas(64) OneMapInfo {
std::map<int, int> positionsRequiringCrossing;
};
auto CalculateMap(
[[nodiscard]] auto CalculateMap(
const std::string& mapName,
const std::shared_ptr<shardok::ActionPointDistancesCache>& apdCache,
const shardok::BattalionTypeSPtr& battalionType) -> OneMapInfo;
@@ -94,7 +94,7 @@ private:
* Read auth token from a file, stripping whitespace.
* Returns empty string if file doesn't exist or is empty.
*/
[[nodiscard]] inline auto ReadAuthTokenFromFile(const std::string& filePath) -> std::string {
inline auto ReadAuthTokenFromFile(const std::string& filePath) -> std::string {
if (filePath.empty()) { return ""; }
std::ifstream file(filePath);