Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-01 09:20:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-01 09:20:31 +0300
commitbdb7d262aadb2685f0cb7ef73840e479252e70d4 (patch)
tree6bf65fd09dc01d85a07f8422b69d91b11818ad00
parentb559fb178e5063c3efd6be6b018ab50c9fd2e0d9 (diff)
Cleanup: clang-tidy warnings
-rw-r--r--source/blender/blenkernel/intern/asset_catalog_path.cc4
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_stub.cpp2
-rw-r--r--source/blender/sequencer/intern/modifier.c5
3 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/asset_catalog_path.cc b/source/blender/blenkernel/intern/asset_catalog_path.cc
index cc6aceef8e7..022bceb133e 100644
--- a/source/blender/blenkernel/intern/asset_catalog_path.cc
+++ b/source/blender/blenkernel/intern/asset_catalog_path.cc
@@ -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_))
diff --git a/source/blender/imbuf/intern/openexr/openexr_stub.cpp b/source/blender/imbuf/intern/openexr/openexr_stub.cpp
index 639100ac6fe..9b4d6178613 100644
--- a/source/blender/imbuf/intern/openexr/openexr_stub.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_stub.cpp
@@ -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*/,
diff --git a/source/blender/sequencer/intern/modifier.c b/source/blender/sequencer/intern/modifier.c
index 8414599b225..1a63f4c4655 100644
--- a/source/blender/sequencer/intern/modifier.c
+++ b/source/blender/sequencer/intern/modifier.c
@@ -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. */