Skip to content

Commit ff00bf7

Browse files
author
Kirill Müller
committed
use const& in Nullable tests
1 parent 324e75c commit ff00bf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inst/unitTests/cpp/misc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,22 @@ void test_stop_variadic() {
179179
}
180180

181181
// [[Rcpp::export]]
182-
bool testNullableForNull(Nullable<NumericMatrix> M) {
182+
bool testNullableForNull(const Nullable<NumericMatrix>& M) {
183183
return M.isNull();
184184
}
185185

186186
// [[Rcpp::export]]
187-
bool testNullableForNotNull(Nullable<NumericMatrix> M) {
187+
bool testNullableForNotNull(const Nullable<NumericMatrix>& M) {
188188
return M.isNotNull();
189189
}
190190

191191
// [[Rcpp::export]]
192-
SEXP testNullableOperator(Nullable<NumericMatrix> M) {
192+
SEXP testNullableOperator(const Nullable<NumericMatrix>& M) {
193193
return M;
194194
}
195195

196196
// [[Rcpp::export]]
197-
SEXP testNullableGet(Nullable<NumericMatrix> M) {
197+
SEXP testNullableGet(const Nullable<NumericMatrix>& M) {
198198
return M.get();
199199
}
200200

0 commit comments

Comments
 (0)