HomePhorge

* Add a test for the behaviour of AttributeFactory. * Don't crash when…
1151030ffa25Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

  • Add a test for the behaviour of AttributeFactory. * Don't crash when someone forgets to register an attribute. Display a warning instead.

I had initially planned to put the warning in AttributeFactory::createAttribute(), but that resulted in a lot of noise since e.g. akonadiconsole uses unknown attributes. So I put the warning when Entity::attribute() tries to cast it instead.

svn path=/trunk/KDE/kdepimlibs/; revision=973946

Details

Provenance
Constantin Berzan <exit3219@gmail.com>Authored on
Parents
rKPLbf26df45ee49: Move test to the corresponding code.
Branches
Unknown
Tags
Unknown

Event Timeline

Constantin Berzan <exit3219@gmail.com> committed rKPL1151030ffa25: * Add a test for the behaviour of AttributeFactory. * Don't crash when… (authored by Constantin Berzan <exit3219@gmail.com>).May 28 2009, 11:21 AM