summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/hashes.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc
index 630a2e674..98b92cc81 100644
--- a/apt-pkg/contrib/hashes.cc
+++ b/apt-pkg/contrib/hashes.cc
@@ -207,9 +207,7 @@ unsigned long long HashStringList::FileSize() const /*{{{*/
/*}}}*/
bool HashStringList::FileSize(unsigned long long const Size) /*{{{*/
{
- std::string size;
- strprintf(size, "%llu", Size);
- return push_back(HashString("Checksum-FileSize", size));
+ return push_back(HashString("Checksum-FileSize", std::to_string(Size)));
}
/*}}}*/
bool HashStringList::supported(char const * const type) /*{{{*/