@@ -59,7 +59,7 @@ namespace Rcpp {
5959 m_tm.tm_year = year - baseYear ();
6060 }
6161 double tmp = mktime00 (m_tm); // use mktime() replacement borrowed from R
62- m_tm.tm_year += baseYear () ; // we'd rather keep it as a normal year
62+ m_tm.tm_year += baseYear (); // we'd rather keep it as a normal year
6363 m_d = tmp/(24 *60 *60 );
6464 }
6565
@@ -121,16 +121,16 @@ namespace Rcpp {
121121 // needed to wrap containers of Date such as vector<Date> or map<string,Date>
122122 namespace internal {
123123 template <> inline double caster<Rcpp::Date,double >(Rcpp::Date from) {
124- return static_cast <double >( from.getDate () ) ;
124+ return static_cast <double >(from.getDate ()) ;
125125 }
126126 template <> inline Rcpp::Date caster<double ,Rcpp::Date>(double from) {
127127 return Rcpp::Date (static_cast <int >(from));
128128 }
129129 }
130130
131131 template <> inline SEXP wrap_extra_steps<Rcpp::Date>(SEXP x) {
132- Rf_setAttrib ( x, R_ClassSymbol, Rf_mkString (" Date" ));
133- return x ;
132+ Rf_setAttrib (x, R_ClassSymbol, Rf_mkString (" Date" ));
133+ return x;
134134 }
135135
136136 inline Date operator +(const Date &date, int offset) {
@@ -155,17 +155,17 @@ namespace Rcpp {
155155 Shield<SEXP> datetimeclass (Rf_allocVector (STRSXP,2 ));
156156 SET_STRING_ELT (datetimeclass, 0 , Rf_mkChar (" POSIXct" ));
157157 SET_STRING_ELT (datetimeclass, 1 , Rf_mkChar (" POSIXt" ));
158- return datetimeclass ;
158+ return datetimeclass;
159159 }
160160
161161 inline SEXP new_posixt_object ( double d) {
162162 Shield<SEXP> x (Rf_ScalarReal (d));
163163 Rf_setAttrib (x, R_ClassSymbol, getPosixClasses ());
164- return x ;
164+ return x;
165165 }
166166
167167 inline SEXP new_date_object (double d) {
168- Shield<SEXP> x (Rf_ScalarReal (d)) ;
168+ Shield<SEXP> x (Rf_ScalarReal (d));
169169 Rf_setAttrib (x, R_ClassSymbol, Rf_mkString (" Date" ));
170170 return x;
171171 }
0 commit comments