diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 13:04:47 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 13:04:47 +0300 |
commit | 8057ab10db5945db18ccb45265b91ce120ae0be5 (patch) | |
tree | 974381c1d2264099848b2c1c5ed8a469a980a32e /source/blender/io/alembic | |
parent | 371ddda4d0b3c2ef0c40f604715db801dc33b669 (diff) |
Cleanup: Clang-Tidy readability-const-return-type fixes
No functional changes.
Diffstat (limited to 'source/blender/io/alembic')
15 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/io/alembic/exporter/abc_writer_abstract.h b/source/blender/io/alembic/exporter/abc_writer_abstract.h index f46409b7902..fefa9c356f2 100644 --- a/source/blender/io/alembic/exporter/abc_writer_abstract.h +++ b/source/blender/io/alembic/exporter/abc_writer_abstract.h @@ -67,7 +67,7 @@ class ABCAbstractWriter : public AbstractHierarchyWriter { * is_supported(). */ virtual void create_alembic_objects(const HierarchyContext *context) = 0; - virtual const Alembic::Abc::OObject get_alembic_object() const = 0; + virtual Alembic::Abc::OObject get_alembic_object() const = 0; protected: virtual void do_write(HierarchyContext &context) = 0; diff --git a/source/blender/io/alembic/exporter/abc_writer_camera.cc b/source/blender/io/alembic/exporter/abc_writer_camera.cc index 7e7277cb4ea..6f13f791c4e 100644 --- a/source/blender/io/alembic/exporter/abc_writer_camera.cc +++ b/source/blender/io/alembic/exporter/abc_writer_camera.cc @@ -62,7 +62,7 @@ void ABCCameraWriter::create_alembic_objects(const HierarchyContext * /*context* abc_custom_data_container_, "eyeSeparation", timesample_index_); } -const Alembic::Abc::OObject ABCCameraWriter::get_alembic_object() const +Alembic::Abc::OObject ABCCameraWriter::get_alembic_object() const { return abc_camera_; } diff --git a/source/blender/io/alembic/exporter/abc_writer_camera.h b/source/blender/io/alembic/exporter/abc_writer_camera.h index a72cfa2f357..ceaa352d162 100644 --- a/source/blender/io/alembic/exporter/abc_writer_camera.h +++ b/source/blender/io/alembic/exporter/abc_writer_camera.h @@ -40,7 +40,7 @@ class ABCCameraWriter : public ABCAbstractWriter { explicit ABCCameraWriter(const ABCWriterConstructorArgs &args); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; protected: virtual bool is_supported(const HierarchyContext *context) const override; diff --git a/source/blender/io/alembic/exporter/abc_writer_curves.cc b/source/blender/io/alembic/exporter/abc_writer_curves.cc index 6f185020b58..9d65830c699 100644 --- a/source/blender/io/alembic/exporter/abc_writer_curves.cc +++ b/source/blender/io/alembic/exporter/abc_writer_curves.cc @@ -63,7 +63,7 @@ void ABCCurveWriter::create_alembic_objects(const HierarchyContext *context) user_prop_resolu.set(cu->resolu); } -const Alembic::Abc::OObject ABCCurveWriter::get_alembic_object() const +Alembic::Abc::OObject ABCCurveWriter::get_alembic_object() const { return abc_curve_; } diff --git a/source/blender/io/alembic/exporter/abc_writer_curves.h b/source/blender/io/alembic/exporter/abc_writer_curves.h index 12a909761f5..cd6621c398d 100644 --- a/source/blender/io/alembic/exporter/abc_writer_curves.h +++ b/source/blender/io/alembic/exporter/abc_writer_curves.h @@ -42,7 +42,7 @@ class ABCCurveWriter : public ABCAbstractWriter { explicit ABCCurveWriter(const ABCWriterConstructorArgs &args); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; protected: virtual void do_write(HierarchyContext &context) override; diff --git a/source/blender/io/alembic/exporter/abc_writer_hair.cc b/source/blender/io/alembic/exporter/abc_writer_hair.cc index f9b4619b263..1e1d2cf32ca 100644 --- a/source/blender/io/alembic/exporter/abc_writer_hair.cc +++ b/source/blender/io/alembic/exporter/abc_writer_hair.cc @@ -59,7 +59,7 @@ void ABCHairWriter::create_alembic_objects(const HierarchyContext * /*context*/) abc_curves_schema_ = abc_curves_.getSchema(); } -const Alembic::Abc::OObject ABCHairWriter::get_alembic_object() const +Alembic::Abc::OObject ABCHairWriter::get_alembic_object() const { return abc_curves_; } diff --git a/source/blender/io/alembic/exporter/abc_writer_hair.h b/source/blender/io/alembic/exporter/abc_writer_hair.h index af1372a08f3..0e149b0d045 100644 --- a/source/blender/io/alembic/exporter/abc_writer_hair.h +++ b/source/blender/io/alembic/exporter/abc_writer_hair.h @@ -41,7 +41,7 @@ class ABCHairWriter : public ABCAbstractWriter { explicit ABCHairWriter(const ABCWriterConstructorArgs &args); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; protected: virtual void do_write(HierarchyContext &context) override; diff --git a/source/blender/io/alembic/exporter/abc_writer_mesh.cc b/source/blender/io/alembic/exporter/abc_writer_mesh.cc index 517f0212712..a9c722cae91 100644 --- a/source/blender/io/alembic/exporter/abc_writer_mesh.cc +++ b/source/blender/io/alembic/exporter/abc_writer_mesh.cc @@ -119,7 +119,7 @@ ABCGenericMeshWriter::~ABCGenericMeshWriter() { } -const Alembic::Abc::OObject ABCGenericMeshWriter::get_alembic_object() const +Alembic::Abc::OObject ABCGenericMeshWriter::get_alembic_object() const { if (is_subd_) { return abc_subdiv_; diff --git a/source/blender/io/alembic/exporter/abc_writer_mesh.h b/source/blender/io/alembic/exporter/abc_writer_mesh.h index 94499935181..2bb5b687c47 100644 --- a/source/blender/io/alembic/exporter/abc_writer_mesh.h +++ b/source/blender/io/alembic/exporter/abc_writer_mesh.h @@ -56,7 +56,7 @@ class ABCGenericMeshWriter : public ABCAbstractWriter { virtual ~ABCGenericMeshWriter(); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; protected: virtual bool is_supported(const HierarchyContext *context) const override; diff --git a/source/blender/io/alembic/exporter/abc_writer_nurbs.cc b/source/blender/io/alembic/exporter/abc_writer_nurbs.cc index 14cb7773e67..a2dc4441b75 100644 --- a/source/blender/io/alembic/exporter/abc_writer_nurbs.cc +++ b/source/blender/io/alembic/exporter/abc_writer_nurbs.cc @@ -70,7 +70,7 @@ void ABCNurbsWriter::create_alembic_objects(const HierarchyContext *context) } } -const OObject ABCNurbsWriter::get_alembic_object() const +OObject ABCNurbsWriter::get_alembic_object() const { if (abc_nurbs_.empty()) { return OObject(); diff --git a/source/blender/io/alembic/exporter/abc_writer_nurbs.h b/source/blender/io/alembic/exporter/abc_writer_nurbs.h index 23af4c40556..f7fd8ffe91a 100644 --- a/source/blender/io/alembic/exporter/abc_writer_nurbs.h +++ b/source/blender/io/alembic/exporter/abc_writer_nurbs.h @@ -36,7 +36,7 @@ class ABCNurbsWriter : public ABCAbstractWriter { explicit ABCNurbsWriter(const ABCWriterConstructorArgs &args); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; protected: virtual bool is_supported(const HierarchyContext *context) const override; diff --git a/source/blender/io/alembic/exporter/abc_writer_points.cc b/source/blender/io/alembic/exporter/abc_writer_points.cc index 19870e39a90..350b70b9552 100644 --- a/source/blender/io/alembic/exporter/abc_writer_points.cc +++ b/source/blender/io/alembic/exporter/abc_writer_points.cc @@ -55,7 +55,7 @@ void ABCPointsWriter::create_alembic_objects(const HierarchyContext * /*context* abc_points_schema_ = abc_points_.getSchema(); } -const Alembic::Abc::OObject ABCPointsWriter::get_alembic_object() const +Alembic::Abc::OObject ABCPointsWriter::get_alembic_object() const { return abc_points_; } diff --git a/source/blender/io/alembic/exporter/abc_writer_points.h b/source/blender/io/alembic/exporter/abc_writer_points.h index 03800b80acf..88dd424ca2a 100644 --- a/source/blender/io/alembic/exporter/abc_writer_points.h +++ b/source/blender/io/alembic/exporter/abc_writer_points.h @@ -38,7 +38,7 @@ class ABCPointsWriter : public ABCAbstractWriter { explicit ABCPointsWriter(const ABCWriterConstructorArgs &args); virtual void create_alembic_objects(const HierarchyContext *context) override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; virtual bool is_supported(const HierarchyContext *context) const override; diff --git a/source/blender/io/alembic/exporter/abc_writer_transform.cc b/source/blender/io/alembic/exporter/abc_writer_transform.cc index 7694066a13d..93ffd847bf2 100644 --- a/source/blender/io/alembic/exporter/abc_writer_transform.cc +++ b/source/blender/io/alembic/exporter/abc_writer_transform.cc @@ -96,7 +96,7 @@ void ABCTransformWriter::do_write(HierarchyContext &context) write_visibility(context); } -const OObject ABCTransformWriter::get_alembic_object() const +OObject ABCTransformWriter::get_alembic_object() const { return abc_xform_; } diff --git a/source/blender/io/alembic/exporter/abc_writer_transform.h b/source/blender/io/alembic/exporter/abc_writer_transform.h index 950bff39c29..9d172531d1f 100644 --- a/source/blender/io/alembic/exporter/abc_writer_transform.h +++ b/source/blender/io/alembic/exporter/abc_writer_transform.h @@ -39,7 +39,7 @@ class ABCTransformWriter : public ABCAbstractWriter { protected: virtual void do_write(HierarchyContext &context) override; virtual bool check_is_animated(const HierarchyContext &context) const override; - virtual const Alembic::Abc::OObject get_alembic_object() const override; + virtual Alembic::Abc::OObject get_alembic_object() const override; }; } // namespace alembic |