Am 15.05.2015 um 16:48 schrieb Enrico Forestieri <[email protected]>: > On Fri, May 15, 2015 at 04:31:05PM +0200, Stephan Witt wrote: >> >> This results in the following patch - if you had something like that in >> mind I'll split it in two patches. The other getPixmap method with >> QPixmap result was already there. > > Yes, I think that it is better passing big objects by reference rather > than by value.
But this is not a good property of C++ compilers than. 1. It's not a constant fact if an object is big. 2. The compiler should generate fast code for this scenario too. 3. This results in hard to read code eventually. Stephan
