libs/base/src/base/rect.cc

 

warning: variable 'old_max_y' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 298 : 9

  298 |         float old_max_y = top;
      |         ^
      |               const 

warning: variable 'old_max_x' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 307 : 9

  307 |         float old_max_x = right;
      |         ^
      |               const 

warning: variable 'old_min_y' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 316 : 9

  316 |         float old_min_y = bottom;
      |         ^
      |               const 

warning: variable 'old_min_x' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 325 : 9

  325 |         float old_min_x = left;
      |         ^
      |               const 

warning: variable 'new_min_y' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 334 : 9

  334 |         float new_min_y = std::max(bottom, top - amount);
      |         ^
      |               const 

warning: variable 'new_min_x' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 340 : 9

  340 |         float new_min_x = std::max(left, right - amount);
      |         ^
      |               const 

warning: variable 'new_max_y' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 346 : 9

  346 |         float new_max_y = std::min(top, bottom + amount);
      |         ^
      |               const 

warning: variable 'new_max_x' of type 'float' can be declared 'const'

[misc-const-correctness]

libs/base/src/base/rect.cc 352 : 9

  352 |         float new_max_x = std::min(right, left + amount);
      |         ^
      |               const