From 6dbc38e6c66bf6698b87be058b6298879244e09b Mon Sep 17 00:00:00 2001 From: rmast Date: Wed, 24 Apr 2024 11:59:11 +0200 Subject: [PATCH] Asked ChatGPT what to do about it --- revealshapes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/revealshapes.cpp b/revealshapes.cpp index abebe0f..3dc15ae 100644 --- a/revealshapes.cpp +++ b/revealshapes.cpp @@ -41,6 +41,7 @@ #include #include #include +#include using namespace std; @@ -70,7 +71,7 @@ int process_document(int page_from, int page_to, GP doc) { } std::filesystem::path sorig = filename; std::string sorigString = sorig.string(); - sorigString.erase(std::remove(sorigString.begin(), sorigString.end(), '\"'), sorigString.end()); + sorigString.erase(std::remove_if(sorigString.begin(), sorigString.end(), [](char c) { return c == '\"'; }), sorigString.end()); std::filesystem::path s = filename; std::cout << "sjbz or djbz,page number,blit number,blit shapeno,shape bits columns,rows,rowsize,blit bottom, left" << endl;