Mailinglist Archive: yast-devel (78 mails)

< Previous Next >
FIXED: Re: [yast-devel] Re: [yast-commit] r66392 - in /trunk/snapper/agent-snapper/src: SnapperAgent.cc SnapperAgent.h
Fixed in r66407

Dne 12.10.2011 14:08, Ladislav Slezak napsal(a):
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
pointer),
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
lslezak@xxxxxxxx
SUSE


--
--

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

< Previous Next >
Follow Ups
References