Skip to content

Commit

Permalink
cleanup for clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 12, 2024
1 parent 20a1999 commit cdd79d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/limestone/api/datastore.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class datastore {
/**
* @brief destruct the object
*/
~datastore() noexcept;
virtual ~datastore() noexcept;

datastore(datastore const& other) = delete;
datastore& operator=(datastore const& other) = delete;
Expand Down
3 changes: 1 addition & 2 deletions src/limestone/rotation_result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ const std::set<boost::filesystem::path>& rotation_result::get_rotation_end_files
return rotation_end_files;
}

void rotation_result::add_rotated_file(const std::string filename) {
void rotation_result::add_rotated_file(const std::string& filename) {
latest_rotated_files_.insert(filename);

}

} // namespace limestone::api
4 changes: 2 additions & 2 deletions src/limestone/rotation_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ namespace limestone::api {

class rotation_result {
public:
rotation_result(epoch_id_type epoch) : epoch_id_(epoch) {}
explicit rotation_result(epoch_id_type epoch) : epoch_id_(epoch) {}

[[nodiscard]] epoch_id_type get_epoch_id() const;
[[nodiscard]] const std::set<boost::filesystem::path>& get_rotation_end_files() const;
void set_rotation_end_files(const std::set<boost::filesystem::path>& files);
void add_rotated_file(const std::string& filename);

void add_rotated_file(std::string);
private:
// A set of filenames that were rotated in this rotation process.
std::set<std::string> latest_rotated_files_;
Expand Down

0 comments on commit cdd79d5

Please sign in to comment.