]> git.tdb.fi Git - libs/datafile.git/commitdiff
Simplify loading collection items
authorMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 13:11:56 +0000 (16:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 13:11:56 +0000 (16:11 +0300)
The ItemLoader wrapper from DirectoryCollection can be used in the base
Collection::Loader as well.  This removes the need for the kludgy struct
Add and the need for two separate loader functions.  As an added bonus,
the ItemLoader can still be used in DirectoryCollection and future derived
classes as well, further reducing duplication.


No differences found