History log of /haiku/src/kits/package/PackageInfoSet.cpp
Revision Date Author Comments
# b2d96da5 14-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BPackageInfoSet::Iterator: Fix NULL pointer dereference

Since the BPackageInfoSet's map is created lazily, it can be NULL when
an Iterator is constructed.


# 711a2a6e 12-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BPackageInfoSet: Add copy constructor, assignment operator

* Implement copy-on-write support.
* Add copy constructor and assignment operator.
* Remove Init(). Initialize lazily instead. Since AddInfo() can fail
and we check initialization anyway, there's no point in having an
explicit Init(). Given that there was only one invocation of Init()
in the package kit and its users, it was very likely missing in some
places.
* Fix a few places where we ignored that the PackageMap actually
contains lists of PackageInfo objects.


# e35a99be 16-Jul-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Pull class BPackageInfoSet out of BRepositoryCache


# db9a50a2 16-Jul-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Pull class BPackageInfoSet out of BRepositoryCache


# b2d96da589896ed9ebb2524f873e9fc0baa650ec 14-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BPackageInfoSet::Iterator: Fix NULL pointer dereference

Since the BPackageInfoSet's map is created lazily, it can be NULL when
an Iterator is constructed.


# 711a2a6eea557acfd3b0737ec428334ef40155b9 12-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BPackageInfoSet: Add copy constructor, assignment operator

* Implement copy-on-write support.
* Add copy constructor and assignment operator.
* Remove Init(). Initialize lazily instead. Since AddInfo() can fail
and we check initialization anyway, there's no point in having an
explicit Init(). Given that there was only one invocation of Init()
in the package kit and its users, it was very likely missing in some
places.
* Fix a few places where we ignored that the PackageMap actually
contains lists of PackageInfo objects.


# e35a99be4c1f386ea9a38e8daead534eb760a36a 16-Jul-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Pull class BPackageInfoSet out of BRepositoryCache


# db9a50a2c6ecaf7ce4d89595968cfaac2dc5885f 16-Jul-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Pull class BPackageInfoSet out of BRepositoryCache