From 934bc1b1471c3960de838e116c1ce08ef159781c Mon Sep 17 00:00:00 2001 From: aandrei Date: Sun, 26 Sep 2004 06:44:17 +0000 Subject: [PATCH] September 25, 2004: Fixed bug in PrototypeFactoryUnit::GetPrototype, thanks to a bug report submitted by funcall git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@141 7ec92016-0320-0410-acc4-a06ded1c099a --- Borland/AbstractFactory.h | 4 +++- MSVC/1200/AbstractFactory.h | 4 +++- MSVC/1300/AbstractFactory.h | 4 +++- Reference/AbstractFactory.h | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Borland/AbstractFactory.h b/Borland/AbstractFactory.h index c9e501f..35c85dd 100644 --- a/Borland/AbstractFactory.h +++ b/Borland/AbstractFactory.h @@ -117,7 +117,7 @@ namespace Loki { me.pPrototype_ = pObj; } template - void GetPrototype(AbstractProduct*& p) + void GetPrototype(U*& p) { return DoGetPrototype(*this, p); } template @@ -160,6 +160,8 @@ namespace Loki // Change log: // June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!! // July 16, 2002: Ported by Terje Slettebų and Pavel Vozenilek to BCC 5.6 +// September 25, 2004: Fixed bug in PrototypeFactoryUnit::GetPrototype, thanks +// to a bug report submitted by funcall. //////////////////////////////////////////////////////////////////////////////// #endif // ABSTRACTFACTORY_INC_ diff --git a/MSVC/1200/AbstractFactory.h b/MSVC/1200/AbstractFactory.h index 61fef3d..593dfd5 100644 --- a/MSVC/1200/AbstractFactory.h +++ b/MSVC/1200/AbstractFactory.h @@ -158,7 +158,7 @@ namespace Loki { me.pPrototype_ = pObj; } template - void GetPrototype(AbstractProduct*& p) + void GetPrototype(U*& p) { return DoGetPrototype(*this, p); } template @@ -216,6 +216,8 @@ namespace Loki // June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!! // Oct 24, 2002: ported by Benjamin Kaufmann to MSVC 6.0 // Feb 20, 2003: replaced pointer-dummy parameters with Type2Type-parameters. B.K. +// September 25, 2004: Fixed bug in PrototypeFactoryUnit::GetPrototype, thanks +// to a bug report submitted by funcall. //////////////////////////////////////////////////////////////////////////////// #endif // ABSTRACTFACTORY_INC_ diff --git a/MSVC/1300/AbstractFactory.h b/MSVC/1300/AbstractFactory.h index 55dce96..c25c2ef 100644 --- a/MSVC/1300/AbstractFactory.h +++ b/MSVC/1300/AbstractFactory.h @@ -117,7 +117,7 @@ namespace Loki { me.pPrototype_ = pObj; } template - void GetPrototype(AbstractProduct*& p) + void GetPrototype(U*& p) { return DoGetPrototype(*this, p); } template @@ -160,6 +160,8 @@ namespace Loki // Change log: // June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!! // May 10, 2002: ported by Rani Sharoni to VC7 (RTM - 9466) +// September 25, 2004: Fixed bug in PrototypeFactoryUnit::GetPrototype, thanks +// to a bug report submitted by funcall. //////////////////////////////////////////////////////////////////////////////// #endif // ABSTRACTFACTORY_INC_ diff --git a/Reference/AbstractFactory.h b/Reference/AbstractFactory.h index fb5ed93..8595e8e 100644 --- a/Reference/AbstractFactory.h +++ b/Reference/AbstractFactory.h @@ -117,7 +117,7 @@ namespace Loki { me.pPrototype_ = pObj; } template - void GetPrototype(AbstractProduct*& p) + void GetPrototype(U*& p) { return DoGetPrototype(*this, p); } template @@ -158,6 +158,8 @@ namespace Loki //////////////////////////////////////////////////////////////////////////////// // Change log: +// September 25, 2004: Fixed bug in PrototypeFactoryUnit::GetPrototype, thanks +// to a bug report submitted by funcall. // June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!! ////////////////////////////////////////////////////////////////////////////////