Mailinglist Archive: yast-devel (78 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] r66392 - in /trunk/snapper/agent-snapper/src: SnapperAgent.h
Dne 12.10.2011 13:43, jsuchome@xxxxxxxxxxxxxxxxx napsal(a):
+int SnapperAgent::getIntValue (const YCPMap &map, const YCPString &key,
const int &deflt)

Const reference to int doesn't make much sense, const int is enough.

Size of int is 32bit on both i586/x86_64, but pointer to int (actually any
which is used for passing reference, is 64bit on x86_64. (And reference needs a
memory access while int can be stored directly in a CPU register - but it
depends on
gcc optimizations I guess...)


Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups