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:
authorBastien Montagne <bastien@blender.org>2021-10-26 10:52:08 +0300
committerBastien Montagne <bastien@blender.org>2021-10-26 10:52:08 +0300
commitee743204b0b7fddd4a3cf315f2996467ca786500 (patch)
tree0622a978d3911692655579502467c5cb1737fd90 /source/blender/blenkernel/intern/icons.cc
parent5f9b00a07ebdec1a95837063e781b37d8534b11e (diff)
Cleanup: build warnings.
`NULL` instead of `nullptr` in cpp code, and `else` statements after returns.
Diffstat (limited to 'source/blender/blenkernel/intern/icons.cc')
-rw-r--r--source/blender/blenkernel/intern/icons.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/icons.cc b/source/blender/blenkernel/intern/icons.cc
index c48f3934a19..f820b345c59 100644
--- a/source/blender/blenkernel/intern/icons.cc
+++ b/source/blender/blenkernel/intern/icons.cc
@@ -363,7 +363,7 @@ PreviewImage **BKE_previewimg_id_get_p(const ID *id)
Object *ob = (Object *)id;
/* Currently, only object types with real geometry can be rendered as preview. */
if (!OB_TYPE_IS_GEOMETRY(ob->type)) {
- return NULL;
+ return nullptr;
}
return &ob->preview;
}