Cleanup: Remove unnecessary void keyword in C++ function declarations

This commit is contained in:
Hans Goudey
2024-03-06 18:35:02 -05:00
parent d22a8b0a16
commit 2f0fa33eec
2 changed files with 4 additions and 4 deletions

View File

@@ -282,14 +282,14 @@ class IDRemapper {
bool allow_idtype_mismatch = false;
public:
void clear(void)
void clear()
{
mappings_.clear();
never_null_users_.clear();
source_types_ = 0;
}
bool is_empty(void) const
bool is_empty() const
{
return mappings_.is_empty();
}
@@ -343,7 +343,7 @@ class IDRemapper {
static const StringRefNull result_to_string(const IDRemapperApplyResult result);
/** Print out the rules inside the given id_remapper. Can be used for debugging purposes. */
void print(void) const;
void print() const;
};
} // namespace blender::bke::id

View File

@@ -108,7 +108,7 @@ const StringRefNull IDRemapper::result_to_string(const IDRemapperApplyResult res
return "";
}
void IDRemapper::print(void) const
void IDRemapper::print() const
{
auto print_cb = [](ID *old_id, ID *new_id, void * /*user_data*/) {
if (old_id != nullptr && new_id != nullptr) {