src/nituml: fix `Model::tpl_*` since it is now a MEntity
authorJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 22:24:36 +0000 (18:24 -0400)
committerJean Privat <jean@pryen.org>
Wed, 21 Oct 2015 15:19:00 +0000 (11:19 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/uml/uml_class.nit
src/uml/uml_module.nit

index 92317a4..aa93740 100644 (file)
@@ -44,7 +44,7 @@ end
 redef class Model
 
        # Generates a UML Class diagram from the entities of a `Model`
-       fun tpl_class(ctx: ToolContext, main: MModule): Writable do
+       redef fun tpl_class(ctx, main) do
                var t = new Template
                for i in mclasses do
                        if not ctx.private_gen and i.visibility != public_visibility then continue
index 6e80325..eda98e3 100644 (file)
@@ -42,7 +42,7 @@ end
 
 redef class Model
        # Returns a UML package diagram of `main`
-       fun tpl_module(ctx: ToolContext, main: MModule): Writable do
+       redef fun tpl_module(ctx, main) do
                return main.tpl_module(ctx, main)
        end
 end