pmt: reformat code and improve
This commit is contained in:
@@ -286,8 +286,8 @@ public:
|
||||
/**
|
||||
* Get Map_t object reference
|
||||
*/
|
||||
Map_t& operator*();
|
||||
const Map_t& operator*() const;
|
||||
Map_t &operator*();
|
||||
const Map_t &operator*() const;
|
||||
};
|
||||
|
||||
using Error = Helper::Error;
|
||||
|
||||
@@ -89,7 +89,7 @@ bool hasMagic(const uint64_t magic, const ssize_t buf,
|
||||
return false;
|
||||
}
|
||||
|
||||
auto *buffer = new(std::nothrow) uint8_t[buf];
|
||||
auto *buffer = new (std::nothrow) uint8_t[buf];
|
||||
collector.delAfterProgress(buffer);
|
||||
|
||||
const ssize_t bytesRead = read(fd, buffer, buf);
|
||||
|
||||
@@ -251,11 +251,9 @@ bool basic_partition_map_builder::operator()(const std::string_view path) {
|
||||
return readDirectory(path);
|
||||
}
|
||||
|
||||
Map_t& basic_partition_map_builder::operator*() {
|
||||
return _current_map;
|
||||
}
|
||||
Map_t &basic_partition_map_builder::operator*() { return _current_map; }
|
||||
|
||||
const Map_t& basic_partition_map_builder::operator*() const {
|
||||
const Map_t &basic_partition_map_builder::operator*() const {
|
||||
return _current_map;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user