Replaced ported prdfScanFacility.[HC]
The ScanFacility was just a bunch of wrapper functions for the
flyweights. I eliminated the wrappers by making singletons for each
flyweight.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I8ff96f33da2d52e2c1abc3556d094dabcf441945
diff --git a/test/flyweight_test.cpp b/test/flyweight_test.cpp
index 1927360..83b33c0 100644
--- a/test/flyweight_test.cpp
+++ b/test/flyweight_test.cpp
@@ -16,12 +16,9 @@
int iv_i = 0;
};
-Flyweight<Foo> factory {};
-
Foo & addFoo( int i )
{
- Foo f { i };
- return factory.get( f );
+ return Flyweight<Foo>::getSingleton().get( Foo { i } );
}
TEST( FlyweightTest, TestSet1 )