mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
add to c++ style docs note about const& convention
This commit is contained in:
parent
232256e136
commit
6462af3a02
@ -95,6 +95,12 @@ If you see bits of code around that do not follow these please don't hesitate to
|
||||
|
||||
(int)value; // no
|
||||
|
||||
#### Use const keyword after the type
|
||||
|
||||
std::string const& variable_name // preferred, for consistency
|
||||
|
||||
std::string const& variable_name // no
|
||||
|
||||
#### Shared pointers should be created with [boost::make_shared](http://www.boost.org/doc/libs/1_47_0/libs/smart_ptr/make_shared.html) where possible
|
||||
|
||||
#### Function definitions should not be separated from their arguments:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user