Skip to content

Commit 0319664

Browse files
committed
complete switch from std::string to const char*
1 parent 0187051 commit 0319664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/date_datetime/newDatetimeVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace Rcpp {
5353
SET_STRING_ELT(datetimeclass, 1, Rf_mkChar("POSIXt"));
5454
Rf_setAttrib(*this, R_ClassSymbol, datetimeclass);
5555

56-
if (tz != "") {
56+
if (strcmp(tz, "") != 0) {
5757
Shield<SEXP> tzsexp(Rf_mkString(tz));
5858
Rf_setAttrib(*this, Rf_install("tzone"), tzsexp);
5959
}

0 commit comments

Comments
 (0)