aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/disposable.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove semicolon after namespaceAlexander Sulfrian2014-05-041-1/+1
| | | | | Class definitions have to end with a semicolon but not namespaces. So remove this everywhere.
* utils: add disposer helperAlexander Sulfrian2013-01-131-0/+52
The disposer helper should be used to encapsulate disposable objects. This objects have to cleanup something before deconstruction and so you need to help dispose before destruction of the object. The disposer takes care for you. On destruction of the disposer, it calls dispose of the encapsulated object and then destroy it, too. So you do not need to remember to call dispose manually.