From e8f5c184961d65467d155daef11da74640c38b63 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 9 May 2022 09:50:37 +0000 Subject: fix(maple.cc): iterator on non-variable --- maple/maple.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maple/maple.cc b/maple/maple.cc index ed434ab..7b30d70 100644 --- a/maple/maple.cc +++ b/maple/maple.cc @@ -37,6 +37,7 @@ auto main() -> int { bool titan = false; std::string titan_token; size_t titan_max_size = 0; + const std::string GEMINI_FILE_EXTENSION = "gmi"; // Check if the user is want to support Titan and set it up maple::setup_environment(titan, titan_token, titan_max_size); @@ -61,8 +62,8 @@ auto main() -> int { if (std::equal( file_extension.begin(), file_extension.end(), - std::string("gmi").begin(), - std::string("gmi").end(), + GEMINI_FILE_EXTENSION.begin(), + GEMINI_FILE_EXTENSION.end(), [](char a, char b) -> bool { return std::tolower(a) == std::tolower(b); } )) { gemini_files.push_back(entry.path()); -- cgit v1.2.3