From bb5573b30c9fb025c534664dab5488f014d6a5af Mon Sep 17 00:00:00 2001 From: Benedikt Hegner Date: Fri, 15 Sep 2023 10:24:34 +0200 Subject: [PATCH] rename CMake macro createBuffers into create_buffers --- python/templates/Collection.cc.jinja2 | 4 ++-- python/templates/macros/collections.jinja2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/templates/Collection.cc.jinja2 b/python/templates/Collection.cc.jinja2 index f8b7a17e8..1eac8fd99 100644 --- a/python/templates/Collection.cc.jinja2 +++ b/python/templates/Collection.cc.jinja2 @@ -181,12 +181,12 @@ podio::SchemaVersionT {{ collection_type }}::getSchemaVersion() const { // ensures that we don't have to make up arbitrary namespace names here, since // none of this is publicly visible namespace { - {{ macros.createBuffers(class, package_name, collection_type, OneToManyRelations, OneToOneRelations, VectorMembers, -1) }} + {{ macros.create_buffers(class, package_name, collection_type, OneToManyRelations, OneToOneRelations, VectorMembers, -1) }} {# // SCHEMA EVOLUTION: Not yet required with only ROOT backend // {% if old_schema_version is defined %} -// {{ macros.createBuffers(class, package_name, collection_type, OneToManyRelations_old, OneToOneRelations_old, VectorMembers_old, old_schema_version) }} +// {{ macros.create_buffers(class, package_name, collection_type, OneToManyRelations_old, OneToOneRelations_old, VectorMembers_old, old_schema_version) }} // {% endif %} #} diff --git a/python/templates/macros/collections.jinja2 b/python/templates/macros/collections.jinja2 index ae3d5687d..efc7c24cb 100644 --- a/python/templates/macros/collections.jinja2 +++ b/python/templates/macros/collections.jinja2 @@ -153,7 +153,7 @@ void {{ class.bare_type }}Collection::print(std::ostream& os, bool flush) const } {% endmacro %} -{% macro createBuffers(class, package_name, collection_type, OneToManyRelations, OneToOneRelations, VectorMembers, schemaVersion) %} +{% macro create_buffers(class, package_name, collection_type, OneToManyRelations, OneToOneRelations, VectorMembers, schemaVersion) %} {% if schemaVersion == -1 %} podio::CollectionReadBuffers createBuffers(bool isSubset) {