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

@@ -1,5 +1,5 @@
#pragma once
#ifndef COMMAND_PARSER_H
#define COMMAND_PARSER_H
#include <string>
#include <vector>
#include <tuple>
@@ -18,3 +18,4 @@ namespace platform {
int index;
};
} /* namespace platform */
#endif

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;

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef MANAGE_SCREEN_H
#define MANAGE_SCREEN_H
#include <xlsxwriter.h>
#include "ResultsManager.h"
#include "Paginator.hpp"
@@ -50,3 +50,4 @@ namespace platform {
lxw_workbook* workbook;
};
}
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef PAGINATOR_HPP
#define PAGINATOR_HPP
#include <utility>
class Paginator {
@@ -53,4 +53,5 @@ private:
int total;
int page;
int numPages;
};
};
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef RESULTSMANAGER_H
#define RESULTSMANAGER_H
#include <vector>
#include <string>
#include <nlohmann/json.hpp>
@@ -45,4 +45,5 @@ namespace platform {
int maxTitle;
std::vector<Result> files;
};
};
};
#endif