cxx: No need to declare the current class twice
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Nov 2017 08:41:24 +0000 (17:41 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Dec 2017 01:09:58 +0000 (10:09 +0900)
This avoids double _FWD_GUARD for the current class in a .eo.hh header.

src/bin/eolian_cxx/eolian_cxx.cc

index 34b8bbc..3fab179 100644 (file)
@@ -72,7 +72,7 @@ generate(const Eolian_Class* klass, eolian_cxx::options_type const& opts)
 
    efl::eolian::grammar::attributes::klass_def klass_def(klass, opts.unit);
    std::vector<efl::eolian::grammar::attributes::klass_def> klasses{klass_def};
-   std::vector<efl::eolian::grammar::attributes::klass_def> forward_klasses{klass_def};
+   std::vector<efl::eolian::grammar::attributes::klass_def> forward_klasses{};
 
    std::set<std::string> c_headers;
    std::set<std::string> cpp_headers;