Skip to content
Snippets Groups Projects
Commit 888e74c1 authored by Joachim Metz's avatar Joachim Metz
Browse files

Replaced instances of string.size() with string.empty()

parent e4c60a3b
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ uint8_t APFSPoolCompat::poolstat(FILE *hFile) const noexcept try { ...@@ -185,7 +185,7 @@ uint8_t APFSPoolCompat::poolstat(FILE *hFile) const noexcept try {
vol.changed() % 1000000000, time_buf)); vol.changed() % 1000000000, time_buf));
const auto unmount_log = vol.unmount_log(); const auto unmount_log = vol.unmount_log();
if (unmount_log.size() != 0) { if (!unmount_log.empty()) {
tsk_fprintf(hFile, "|\n"); tsk_fprintf(hFile, "|\n");
tsk_fprintf(hFile, "| Unmount Logs\n"); tsk_fprintf(hFile, "| Unmount Logs\n");
tsk_fprintf(hFile, "| ------------\n"); tsk_fprintf(hFile, "| ------------\n");
......
...@@ -44,7 +44,7 @@ class TSKPool { ...@@ -44,7 +44,7 @@ class TSKPool {
inline uint32_t dev_block_size() const noexcept { return _dev_block_size; } 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 num_blocks() const noexcept { return _num_blocks; }
inline uint64_t first_img_offset() const noexcept { inline uint64_t first_img_offset() const noexcept {
if (_members.size() >= 1) { if (!_members.empty()) {
return _members[0].second; return _members[0].second;
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment