Skip to content

Commit

Permalink
removed std and unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
D1n03 committed Aug 12, 2024
1 parent bf18a7e commit a02400e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Types/PDF/src/pdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extern "C"
return false;
}
auto header = buf.GetObject<PDF::Header>();
if (std::memcmp(header->identifier, PDF::KEY::PDF_MAGIC, 5) != 0) {
if (memcmp(header->identifier, PDF::KEY::PDF_MAGIC, 5) != 0) {
return false;
}
if (header->version_1 != '1' || header->point != '.' || (header->version_N < '0' || header->version_N > '7'))
Expand Down Expand Up @@ -213,9 +213,9 @@ extern "C"

auto getPrevRow = [&](uint64_t offset, uint8_t* buffer) {
if (offset >= rowLength) {
std::memcpy(buffer, data.GetData() + offset - rowLength, rowLength);
memcpy(buffer, data.GetData() + offset - rowLength, rowLength);
} else {
std::memset(buffer, 0, rowLength);
memset(buffer, 0, rowLength);
}
};

Expand Down Expand Up @@ -425,7 +425,6 @@ extern "C"
uint64 lengthVal = 0;
Buffer streamData;
std::vector<std::string> filters;
bool filterType = 0; // FLATE ONLY

struct WValues{ // W[x y z]
uint8 x;
Expand Down

0 comments on commit a02400e

Please sign in to comment.