Skip to content

Commit f5221c5

Browse files
safer DataFrame(SEXP) ctor. reported in tidyverse/dplyr#998
1 parent 3eb1894 commit f5221c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/DataFrame.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// DataFrame.h: Rcpp R/C++ interface class library -- data frames
44
//
5-
// Copyright (C) 2010 - 2014 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2010 - 2015 Dirk Eddelbuettel and Romain Francois
66
//
77
// This file is part of Rcpp.
88
//
@@ -40,7 +40,7 @@ namespace Rcpp{
4040
typedef Vector<VECSXP, StoragePolicy> Parent ;
4141

4242
DataFrame_Impl() : Parent( internal::empty_data_frame() ){}
43-
DataFrame_Impl(SEXP x) {
43+
DataFrame_Impl(SEXP x) : Parent(x) {
4444
set__(x);
4545
}
4646
DataFrame_Impl( const DataFrame_Impl& other){

0 commit comments

Comments
 (0)