vrancurel / dcss

Decentralized Secure Storage with the Ethereum Blockchain
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Constification #33

Closed slaperche-scality closed 6 years ago

slaperche-scality commented 6 years ago

Use const and const reference (instead of pointer) when possible/where it makes sense: help the compiler to help us.

slaperche-scality commented 6 years ago

Not sure that const reference used as object's member is a good idea, I'll need to reflect a bit more on this.

slaperche-scality commented 6 years ago

Yeah, reference are good for function parameters but pointers are still better for object members (we will use naked pointers for now, in another PR we may have a switch to something with more semantic).