Replacce pragma once with ifndef
This commit is contained in:
@@ -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
|
@@ -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;
|
||||
|
@@ -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
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user