Skip to content

Commit caa2989

Browse files
committed
dotnet: cleanup
1 parent a1d76d0 commit caa2989

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ortools/util/csharp/vector.i

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767
%}
6868

6969
%typemap(out) std::vector<TYPE> %{
70-
const std::vector< TYPE >& vec = $1;
71-
$result = new std::vector< TYPE >(vec);
70+
$result = new std::vector< TYPE >($1);
7271
%}
7372
%typemap(csout, excode=SWIGEXCODE) std::vector<TYPE> {
7473
global::System.IntPtr cPtr = $imcall;$excode

0 commit comments

Comments
 (0)