Skip to content

Commit

Permalink
Asked ChatGPT what to do about it
Browse files Browse the repository at this point in the history
  • Loading branch information
rmast committed Apr 24, 2024
1 parent 7c94e3b commit 6dbc38e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion revealshapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <cstdlib>
#include <unistd.h>
#include <filesystem>
#include <algorithm>

using namespace std;

Expand Down Expand Up @@ -70,7 +71,7 @@ int process_document(int page_from, int page_to, GP<DjVuDocument> 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;

Expand Down

0 comments on commit 6dbc38e

Please sign in to comment.