From 2e6869483bba657515aad305a3aa7013e477c448 Mon Sep 17 00:00:00 2001 From: m-holger Date: Wed, 21 Sep 2022 17:49:21 +0100 Subject: Replace calls to QUtil::int_to_string with std::to_string --- libqpdf/QPDF_pages.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libqpdf/QPDF_pages.cc') diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc index 0dad3b53..cd05366e 100644 --- a/libqpdf/QPDF_pages.cc +++ b/libqpdf/QPDF_pages.cc @@ -121,7 +121,7 @@ QPDF::getAllPagesInternal( if (!kid.isIndirect()) { QTC::TC("qpdf", "QPDF handle direct page object"); cur_node.warnIfPossible( - "kid " + QUtil::int_to_string(i) + + "kid " + std::to_string(i) + " (from 0) is direct; converting to indirect"); kid = makeIndirectObject(kid); kids.setArrayItem(i, kid); @@ -130,7 +130,7 @@ QPDF::getAllPagesInternal( // shallowCopyPage in QPDFPageObjectHelper. QTC::TC("qpdf", "QPDF resolve duplicated page object"); cur_node.warnIfPossible( - "kid " + QUtil::int_to_string(i) + + "kid " + std::to_string(i) + " (from 0) appears more than once in the pages tree;" " creating a new page object as a copy"); kid = makeIndirectObject(QPDFObjectHandle(kid).shallowCopy()); @@ -205,8 +205,7 @@ QPDF::insertPageobjToPage( // The library never calls insertPageobjToPage in a way // that causes this to happen. setLastObjectDescription( - "page " + QUtil::int_to_string(pos) + " (numbered from zero)", - og); + "page " + std::to_string(pos) + " (numbered from zero)", og); throw QPDFExc( qpdf_e_pages, this->m->file->getName(), -- cgit v1.2.3-54-g00ecf