Skip to content

Commit 3628efa

Browse files
author
Kasper Peeters
committed
Avoid a vector copy in 'join'.
1 parent 38057a1 commit 3628efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/pythoncdb/py_ex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace cadabra {
132132
}
133133
}
134134

135-
Ex_ptr Ex_join(std::vector<Ex_ptr> exs)
135+
Ex_ptr Ex_join(const std::vector<Ex_ptr>& exs)
136136
{
137137
auto ret = std::make_shared<Ex>("\\comma");
138138

0 commit comments

Comments
 (0)