Skip to content

Commit 0dedb16

Browse files
committed
small refinement
1 parent 796d8c8 commit 0dedb16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/include/Rcpp/traits/named_object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ template <> class named_object<SEXP> {
4141
public: // #nocov start
4242
named_object( const std::string& name_, const SEXP& o_):
4343
name(name_), object(o_), token(R_NilValue) {
44-
token = Rcpp_precious_preserve(object);
44+
token = Rcpp_PreciousPreserve(object);
4545
}
4646

4747
named_object( const named_object<SEXP>& other ) :
4848
name(other.name), object(other.object), token(other.token) {
49-
token = Rcpp_precious_preserve(object);
49+
token = Rcpp_PreciousPreserve(object);
5050
}
5151
~named_object() {
52-
Rcpp_precious_remove(token);
52+
Rcpp_PreciousRelease(token);
5353

5454
} // #nocov end
5555
const std::string& name;

0 commit comments

Comments
 (0)