diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-09-21 01:09:34 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-09-21 01:09:34 -0700 |
commit | faa1b1f87d4d161cc7fcdc9f32d8abd6fd72316a (patch) | |
tree | a84e43f2dff6ce155bf5c503d54aee3db0ffeaeb /ldid.cpp | |
parent | bb591e2b22d2c30a0f6e45d4f3a827e90d5d9f7b (diff) | |
download | ldid-faa1b1f87d4d161cc7fcdc9f32d8abd6fd72316a.tar.gz ldid-faa1b1f87d4d161cc7fcdc9f32d8abd6fd72316a.tar.zst ldid-faa1b1f87d4d161cc7fcdc9f32d8abd6fd72316a.zip |
Generally prefer data.empty() to data.size() == 0.
Diffstat (limited to 'ldid.cpp')
-rw-r--r-- | ldid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1182,7 +1182,7 @@ void resign(void *idata, size_t isize, std::streambuf &output, const std::string alloc += sizeof(struct BlobIndex); alloc += 0xc; - if (entitlements.size() != 0) { + if (!entitlements.empty()) { special = std::max(special, CSSLOT_ENTITLEMENTS); alloc += sizeof(struct BlobIndex); alloc += sizeof(struct Blob); @@ -1210,7 +1210,7 @@ void resign(void *idata, size_t isize, std::streambuf &output, const std::string insert(blobs, CSSLOT_REQUIREMENTS, data); } - if (entitlements.size() != 0) { + if (!entitlements.empty()) { std::stringbuf data; put(data, entitlements.data(), entitlements.size()); insert(blobs, CSSLOT_ENTITLEMENTS, CSMAGIC_EMBEDDED_ENTITLEMENTS, data); |