added 'const' access modifier in 'set_translation()'

This commit is contained in:
Iordan Iordanov 2018-08-27 11:08:34 +02:00
parent f33164a67f
commit 4e9039c34c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public:
Base(), _stored_translation(false) Base(), _stored_translation(false)
{} {}
void set_translation(Hyperbolic_translation tr) { void set_translation(const Hyperbolic_translation& tr) {
if (!_stored_translation) { if (!_stored_translation) {
_tr = tr; _tr = tr;
_stored_translation = true; _stored_translation = true;