Skip to content

Commit 94312b1

Browse files
committed
Use size() instead of getLength()
For GooString; see the poppler commit: https://gitlab.freedesktop.org/poppler/poppler/-/commit/f6dcd06445b6b7795b4c8f654206c5aef3d79100
1 parent 88b7c08 commit 94312b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ void pack_stream_content(Stream *stream) {
203203
stream->fillGooString(&content);
204204
stream->close();
205205

206-
packer.pack_bin(content.getLength());
207-
packer.pack_bin_body(content.toStr().c_str(), content.getLength());
206+
packer.pack_bin(content.size());
207+
packer.pack_bin_body(content.toStr().c_str(), content.size());
208208
}
209209

210210
void pack_string(const GooString *string) {
211-
if (!string || string->getLength() <= 0)
211+
if (!string || string->size() <= 0)
212212
packer.pack_nil();
213213
else
214214
packer.pack(string->toStr());

0 commit comments

Comments
 (0)