aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-09 09:50:37 +0000
committerFuwn <[email protected]>2022-05-09 09:50:37 +0000
commite8f5c184961d65467d155daef11da74640c38b63 (patch)
tree5767ddf88d1cdcff0027f5c36c62c0ea654c6ff2
parentMerge branch 'main' of https://github.com/gemrest/maple (diff)
downloadmaple-e8f5c184961d65467d155daef11da74640c38b63.tar.xz
maple-e8f5c184961d65467d155daef11da74640c38b63.zip
fix(maple.cc): iterator on non-variable0.1.5
-rw-r--r--maple/maple.cc5
1 files 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());