C++ wrapper: systematically include object.hh in each generated header file

This commit is contained in:
François Grisez 2017-04-06 11:01:04 +02:00
parent e8b4dd21ee
commit 13b127caa2
2 changed files with 1 additions and 2 deletions

View file

@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "{{name}}.hh"
{{/internal}}
{{/includes}}
#include "object.hh"
{{#_class}}{{#isVcard}}
#include <belcard/belcard.hpp>

View file

@ -593,8 +593,6 @@ class ClassHeader(object):
includes = {'internal': [], 'external': []}
if type(_class) is AbsApi.Class:
self._add_include(includes, 'internal', 'object')
for _property in _class.properties:
if _property.setter is not None:
self._needed_includes_from_method(_property.setter, includes)