fix: removed some unnecessary c_str's

This commit is contained in:
Kaley, Fischer 2024-10-19 02:44:34 +02:00
parent 9e4bec6b79
commit 8d4edf3cbf

View file

@ -5,7 +5,6 @@
#include <cstring>
#include <filesystem>
#include <fstream>
#include <ios>
#include <iostream>
#include <ostream>
#include <string>
@ -42,11 +41,11 @@ int main(int argc, char **argv, char **envp) {
// Removes cache
if (std::filesystem::exists(cacheid) &&
std::filesystem::is_directory(cacheid)) {
int status = remove(std::string{cacheid}.c_str());
int status2 = remove(std::string{cachesc}.c_str());
std::filesystem::remove(cacheid);
std::filesystem::remove(cachesc);
} else {
int status = remove(std::string{cacheid}.c_str());
int status2 = remove(std::string{cachesc}.c_str());
std::filesystem::remove(cacheid);
std::filesystem::remove(cachesc);
}
std::vector<std::string> ARGS{argv, argv + argc};