commit | 0e9ad0d6dcbcd89e099672935d524c345362f7ce | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Tue Oct 18 14:24:44 2016 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Oct 20 16:40:18 2016 -0500 |
tree | d95e668570e45c71246ba6ca0be710ce2a0a6c69 | |
parent | b2cca01b3dad5cc1e65f28c295faab625274d793 [diff] |
sdbus++: interface namespaces closed backward In the generated interface files, the closing brackets for the namespaces were commented backwards. com.example generated: } // namespace com } // namespace example Change-Id: I57a9d3b3ba30c2a90f243ba447c7295da258bd58 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/templates/interface.mako.server.cpp b/tools/templates/interface.mako.server.cpp index b606033..cb4ca29 100644 --- a/tools/templates/interface.mako.server.cpp +++ b/tools/templates/interface.mako.server.cpp
@@ -98,7 +98,7 @@ vtable::end() }; - % for s in namespaces: + % for s in reversed(namespaces): } // namespace ${s} % endfor } // namespace server
diff --git a/tools/templates/interface.mako.server.hpp b/tools/templates/interface.mako.server.hpp index ca78cec..ba55ef6 100644 --- a/tools/templates/interface.mako.server.hpp +++ b/tools/templates/interface.mako.server.hpp
@@ -85,7 +85,7 @@ }; - % for s in namespaces: + % for s in reversed(namespaces): } // namespace ${s} % endfor } // namespace server