cinder/Cinder — Issue #113: Improve implementation of constructors
Author: elfring
Created: 2011-11-24 21:52:11+00:00
State: open

I have noticed that some assignments are used in the constructor bodies.

Examples:
- [FontManager](https://github.com/cinder/Cinder/blob/0f58230c22034daa1f93abe8949acf15da9ee578/src/cinder/Font.cpp#L95)
- [DataSourceBuffer](https://github.com/cinder/Cinder/blob/f9d347af1b34db82e19059d1f4ab29cad7c898b6/src/cinder/DataSource.cpp#L126)

The recommended way for performing efficient construction is to use [the initialisation list](http://dietmar-kuehl.de/mirror/c++-faq/ctors.html#faq-10.6 "Should my constructors use 'initialization lists' or 'assignment'?").