diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-09-21 18:49:21 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-09-21 21:57:14 +0200 |
commit | 2e6869483bba657515aad305a3aa7013e477c448 (patch) | |
tree | 0487066d6069127082a5f176baf031e6ec6308b0 /libqpdf/QPDF_json.cc | |
parent | da67a0aa043c2c8ad129fbc87b93afcdab7042a7 (diff) | |
download | qpdf-2e6869483bba657515aad305a3aa7013e477c448.tar.zst |
Replace calls to QUtil::int_to_string with std::to_string
Diffstat (limited to 'libqpdf/QPDF_json.cc')
-rw-r--r-- | libqpdf/QPDF_json.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDF_json.cc b/libqpdf/QPDF_json.cc index 131e7dee..02dc57e8 100644 --- a/libqpdf/QPDF_json.cc +++ b/libqpdf/QPDF_json.cc @@ -641,7 +641,7 @@ QPDF::JSONReactor::dictionaryItem(std::string const& key, JSON const& value) } } else { throw std::logic_error( - "QPDF_json: unknown state " + QUtil::int_to_string(state)); + "QPDF_json: unknown state " + std::to_string(state)); } return true; } @@ -679,7 +679,7 @@ QPDF::JSONReactor::setObjectDescription(QPDFObjectHandle& oh, JSON const& value) if (!this->cur_object.empty()) { description += ", " + this->cur_object; } - description += " at offset " + QUtil::int_to_string(value.getStart()); + description += " at offset " + std::to_string(value.getStart()); oh.setObjectDescription(&this->pdf, description); } @@ -790,7 +790,7 @@ QPDF::writeJSONStream( std::shared_ptr<Pl_StdioFile> f_pl; std::string filename; if (json_stream_data == qpdf_sj_file) { - filename = file_prefix + "-" + QUtil::int_to_string(obj.getObjectID()); + filename = file_prefix + "-" + std::to_string(obj.getObjectID()); f = QUtil::safe_fopen(filename.c_str(), "wb"); f_pl = std::make_shared<Pl_StdioFile>("stream data", f); stream_p = f_pl.get(); |