Replacce pragma once with ifndef

This commit is contained in:
2024-05-18 13:00:13 +02:00
parent c165a4bdda
commit 25bd7a42c6
41 changed files with 118 additions and 89 deletions

View File

@@ -254,7 +254,7 @@ namespace platform {
while (!finished) {
std::cout << color << "Really want to " << intent << " " << fileName << "? (y/n): ";
getline(std::cin, line);
finished = line.size() == 1 && (tolower(line[0]) == 'y' || tolower(line[0] == 'n'));
finished = line.size() == 1 && (tolower(line[0]) == 'y' || tolower(line[0]) == 'n');
}
if (tolower(line[0]) == 'y') {
return true;