Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=c5f37721f70f1bc7c67fc9e0ea384aea45ad0b6c
commit c5f37721f70f1bc7c67fc9e0ea384aea45ad0b6c Author: Priyank <priy...@frugalware.org> Date: Mon Jun 8 19:37:42 2009 +0530 minor fixes * PackageList and GroupList should use base class initializer directly instead of reimplementing the same functions diff --git a/pm.cc b/pm.cc index 6d34afa..1b9c1d4 100644 --- a/pm.cc +++ b/pm.cc @@ -510,15 +510,9 @@ PackageList::PackageList() freeable = false; } -PackageList::PackageList(PM_LIST *l) -{ - ( l ) && ( list = l ) && ( freeable = true ); -} +PackageList::PackageList(PM_LIST *l) : List(l) { } -PackageList::PackageList(PM_LIST *l,bool freelist) -{ - ( l ) && ( list = l ) && ( freeable = freelist ); -} +PackageList::PackageList(PM_LIST *l,bool freelist) : List(l,freelist) { } Package* PackageList::getData() { @@ -538,15 +532,9 @@ GroupList::GroupList() freeable = false; } -GroupList::GroupList(PM_LIST *l) -{ - ( l ) && ( list = l ) && ( freeable = true ); -} +GroupList::GroupList(PM_LIST *l) : List(l) { } -GroupList::GroupList(PM_LIST *l,bool freelist) -{ - ( l ) && ( list = l ) && ( freeable = freelist ); -} +GroupList::GroupList(PM_LIST *l,bool freelist) : List(l,freelist) { } Group* GroupList::getData() { _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git