From 6fb34bb23358980f2a6c86647ae3f4f252ae6a1f Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 15 May 2014 23:49:42 +0200 Subject: [PATCH] Give template parameters more meaningful names --- source/poodinis/container.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/poodinis/container.d b/source/poodinis/container.d index be6f446..da5fbb4 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -15,13 +15,13 @@ class Container { private this() { } - public static Registration register(T)() { - Registration newRegistration = { typeid(T) }; + public static Registration register(ClassType)() { + Registration newRegistration = { typeid(ClassType) }; registrations[newRegistration.registratedType] = newRegistration; return newRegistration; } - public static T resolve(T)() { - return cast(T) registrations[typeid(T)].getInstance(); + public static ClassType resolve(ClassType)() { + return cast(ClassType) registrations[typeid(ClassType)].getInstance(); } }