From 1a448c66edf26ceb4fc4f0daad7375f0ae5f84cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 19 Jun 2020 14:31:04 +0200 Subject: Cleanup: Alembic, move the C++ code to `blender::io::alembic` namespace This commit only moves code into the `blender::io::alembic` namespace, it does not move `static` functions into an anonymous namespace. No functional changes. --- source/blender/io/alembic/intern/abc_reader_mesh.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/io/alembic/intern/abc_reader_mesh.h') diff --git a/source/blender/io/alembic/intern/abc_reader_mesh.h b/source/blender/io/alembic/intern/abc_reader_mesh.h index bc95c7ec134..6acfc057151 100644 --- a/source/blender/io/alembic/intern/abc_reader_mesh.h +++ b/source/blender/io/alembic/intern/abc_reader_mesh.h @@ -26,6 +26,10 @@ struct Mesh; +namespace blender { +namespace io { +namespace alembic { + class AbcMeshReader : public AbcObjectReader { Alembic::AbcGeom::IPolyMeshSchema m_schema; @@ -83,4 +87,8 @@ void read_mverts(MVert *mverts, CDStreamConfig get_config(struct Mesh *mesh); +} // namespace alembic +} // namespace io +} // namespace blender + #endif /* __ABC_READER_MESH_H__ */ -- cgit v1.2.3 From 697b1736ef0549ab84b7e62d599bae85d510540d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 19 Jun 2020 15:14:40 +0200 Subject: Cleanup: Alembic, replace `#ifndef` guards with `#pragma once` No functional changes. --- source/blender/io/alembic/intern/abc_reader_mesh.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/io/alembic/intern/abc_reader_mesh.h') diff --git a/source/blender/io/alembic/intern/abc_reader_mesh.h b/source/blender/io/alembic/intern/abc_reader_mesh.h index 6acfc057151..363a74b8b5f 100644 --- a/source/blender/io/alembic/intern/abc_reader_mesh.h +++ b/source/blender/io/alembic/intern/abc_reader_mesh.h @@ -13,14 +13,12 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#pragma once /** \file * \ingroup balembic */ -#ifndef __ABC_READER_MESH_H__ -#define __ABC_READER_MESH_H__ - #include "abc_customdata.h" #include "abc_reader_object.h" @@ -90,5 +88,3 @@ CDStreamConfig get_config(struct Mesh *mesh); } // namespace alembic } // namespace io } // namespace blender - -#endif /* __ABC_READER_MESH_H__ */ -- cgit v1.2.3