diff options
Diffstat (limited to 'libtests')
-rw-r--r-- | libtests/arg_parser.cc | 6 | ||||
-rw-r--r-- | libtests/nntree.cc | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/libtests/arg_parser.cc b/libtests/arg_parser.cc index 1480a717..9e3e8da5 100644 --- a/libtests/arg_parser.cc +++ b/libtests/arg_parser.cc @@ -141,7 +141,7 @@ ArgParser::getQuack(std::string const& p) ++this->quacks; if (this->ap.isCompleting() && (this->ap.argsLeft() == 0)) { this->ap.insertCompletion( - std::string("thing-") + QUtil::int_to_string(this->quacks)); + std::string("thing-") + std::to_string(this->quacks)); return; } output(std::string("got quack: ") + p); @@ -150,13 +150,13 @@ ArgParser::getQuack(std::string const& p) void ArgParser::endQuack() { - output("total quacks so far: " + QUtil::int_to_string(this->quacks)); + output("total quacks so far: " + std::to_string(this->quacks)); } void ArgParser::finalChecks() { - output("total quacks: " + QUtil::int_to_string(this->quacks)); + output("total quacks: " + std::to_string(this->quacks)); } void diff --git a/libtests/nntree.cc b/libtests/nntree.cc index 98e4fc77..335da857 100644 --- a/libtests/nntree.cc +++ b/libtests/nntree.cc @@ -28,13 +28,12 @@ report(QPDF& q, QPDFObjectHandle oh, long long item, long long exp_item) auto mk_wanted = [](long long i) { return ( (i == -1) ? "end" - : (QUtil::int_to_string(i) + "/(-" + - QUtil::int_to_string(i) + "-)")); + : (std::to_string(i) + "/(-" + std::to_string(i) + "-)")); }; std::string i1_wanted = mk_wanted(exp_item); std::string i2_wanted = mk_wanted(item == exp_item ? item : -1); auto mk_actual = [](bool found, long long v, QPDFObjectHandle& o) { - return (found ? QUtil::int_to_string(v) + "/" + o.unparse() : "end"); + return (found ? std::to_string(v) + "/" + o.unparse() : "end"); }; std::string i1_actual = mk_actual(f1, item - offset, o1); std::string i2_actual = mk_actual(f2, item, o2); @@ -63,8 +62,8 @@ test_bsearch() auto nums = QPDFObjectHandle::newArray(); for (auto i: v) { nums.appendItem(QPDFObjectHandle::newInteger(i)); - nums.appendItem(QPDFObjectHandle::newString( - "-" + QUtil::int_to_string(i) + "-")); + nums.appendItem( + QPDFObjectHandle::newString("-" + std::to_string(i) + "-")); } auto limits = QPDFObjectHandle::newArray(); limits.appendItem(QPDFObjectHandle::newInteger(v.at(0))); |