Commit 02f762cd authored by Paul's avatar Paul
Browse files

Use non-const ref

parent da728bcd
...@@ -24,7 +24,7 @@ struct instruction ...@@ -24,7 +24,7 @@ struct instruction
instruction(literal l); instruction(literal l);
void replace(const operation& o); void replace(operation o);
void recompute_shape(); void recompute_shape();
......
...@@ -28,7 +28,7 @@ void instruction::replace(const shape& r) ...@@ -28,7 +28,7 @@ void instruction::replace(const shape& r)
} }
} }
void instruction::replace(const operation& o) void instruction::replace(operation o)
{ {
op = std::move(o); op = std::move(o);
recompute_shape(); recompute_shape();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment