@@ -140,7 +140,7 @@ bool StagePrivate::storeSolution(const SolutionBasePtr& solution) {
140140 return true ;
141141}
142142
143- void StagePrivate::sendForward (const InterfaceState& from, InterfaceState&& to, SolutionBasePtr solution) {
143+ void StagePrivate::sendForward (const InterfaceState& from, InterfaceState&& to, const SolutionBasePtr& solution) {
144144 assert (nextStarts ());
145145 if (!storeSolution (solution))
146146 return ; // solution dropped
@@ -157,7 +157,7 @@ void StagePrivate::sendForward(const InterfaceState& from, InterfaceState&& to,
157157 newSolution (solution);
158158}
159159
160- void StagePrivate::sendBackward (InterfaceState&& from, const InterfaceState& to, SolutionBasePtr solution) {
160+ void StagePrivate::sendBackward (InterfaceState&& from, const InterfaceState& to, const SolutionBasePtr& solution) {
161161 assert (prevEnds ());
162162 if (!storeSolution (solution))
163163 return ; // solution dropped
@@ -174,7 +174,7 @@ void StagePrivate::sendBackward(InterfaceState&& from, const InterfaceState& to,
174174 newSolution (solution);
175175}
176176
177- void StagePrivate::spawn (InterfaceState&& state, SolutionBasePtr solution) {
177+ void StagePrivate::spawn (InterfaceState&& state, const SolutionBasePtr& solution) {
178178 assert (prevEnds () && nextStarts ());
179179 if (!storeSolution (solution))
180180 return ; // solution dropped
@@ -193,7 +193,7 @@ void StagePrivate::spawn(InterfaceState&& state, SolutionBasePtr solution) {
193193 newSolution (solution);
194194}
195195
196- void StagePrivate::connect (const InterfaceState& from, const InterfaceState& to, SolutionBasePtr solution) {
196+ void StagePrivate::connect (const InterfaceState& from, const InterfaceState& to, const SolutionBasePtr& solution) {
197197 if (!storeSolution (solution))
198198 return ; // solution dropped
199199
@@ -742,7 +742,7 @@ bool Connecting::compatible(const InterfaceState& from_state, const InterfaceSta
742742 return true ;
743743}
744744
745- void Connecting::connect (const InterfaceState& from, const InterfaceState& to, SolutionBasePtr s) {
745+ void Connecting::connect (const InterfaceState& from, const InterfaceState& to, const SolutionBasePtr& s) {
746746 pimpl ()->connect (from, to, s);
747747}
748748
0 commit comments