diff --git a/tsk/pool/apfs_pool_compat.cpp b/tsk/pool/apfs_pool_compat.cpp index a77cef65f0be1f2e9f011a486b72fab6cb42791d..2b1d16acab19c036a26941da644c01639c1f3ffa 100755 --- a/tsk/pool/apfs_pool_compat.cpp +++ b/tsk/pool/apfs_pool_compat.cpp @@ -185,7 +185,7 @@ uint8_t APFSPoolCompat::poolstat(FILE *hFile) const noexcept try { vol.changed() % 1000000000, time_buf)); const auto unmount_log = vol.unmount_log(); - if (unmount_log.size() != 0) { + if (!unmount_log.empty()) { tsk_fprintf(hFile, "|\n"); tsk_fprintf(hFile, "| Unmount Logs\n"); tsk_fprintf(hFile, "| ------------\n"); diff --git a/tsk/pool/tsk_pool.hpp b/tsk/pool/tsk_pool.hpp index 05986541591bc179cce9526e942ec2b9e62d0e21..7380e06779d66665a8437428401d66a01d0f3ef9 100644 --- a/tsk/pool/tsk_pool.hpp +++ b/tsk/pool/tsk_pool.hpp @@ -44,7 +44,7 @@ class TSKPool { inline uint32_t dev_block_size() const noexcept { return _dev_block_size; } inline uint64_t num_blocks() const noexcept { return _num_blocks; } inline uint64_t first_img_offset() const noexcept { - if (_members.size() >= 1) { + if (!_members.empty()) { return _members[0].second; } return 0;