parameter can be made const
This commit is contained in:
parent
ff3de43ec6
commit
3bcd262099
@ -27,7 +27,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
|
||||
class PolylineCompressor {
|
||||
private:
|
||||
inline string encodeSignedNumber(int number) const {
|
||||
inline string encodeSignedNumber(const int number) const {
|
||||
int signedNumber = number << 1;
|
||||
if (number < 0) {
|
||||
signedNumber = ~(signedNumber);
|
||||
|
Loading…
Reference in New Issue
Block a user