Cleanup: clang-tidy warnings

This commit is contained in:
Campbell Barton 2021-10-01 16:20:31 +10:00
parent b559fb178e
commit bdb7d262aa
3 changed files with 4 additions and 7 deletions

View File

@ -38,9 +38,7 @@ AssetCatalogPath::AssetCatalogPath(const char *path) : path_(path)
{
}
AssetCatalogPath::AssetCatalogPath(const AssetCatalogPath &other_path) : path_(other_path.path_)
{
}
AssetCatalogPath::AssetCatalogPath(const AssetCatalogPath &other_path) = default;
AssetCatalogPath::AssetCatalogPath(AssetCatalogPath &&other_path) noexcept
: path_(std::move(other_path.path_))

View File

@ -49,7 +49,7 @@ bool IMB_exr_begin_read(void * /*handle*/,
int * /*height*/,
const bool /*add_channels*/)
{
return 0;
return false;
}
bool IMB_exr_begin_write(void * /*handle*/,
const char * /*filename*/,

View File

@ -302,9 +302,8 @@ static StripColorBalance calc_cb(StripColorBalance *cb_)
if (cb_->method == SEQ_COLOR_BALANCE_METHOD_LIFTGAMMAGAIN) {
return calc_cb_lgg(cb_);
}
else { /* cb_->method == SEQ_COLOR_BALANCE_METHOD_SLOPEOFFSETPOWER */
return calc_cb_sop(cb_);
}
/* `cb_->method == SEQ_COLOR_BALANCE_METHOD_SLOPEOFFSETPOWER`. */
return calc_cb_sop(cb_);
}
/* NOTE: lift is actually 2-lift. */