Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Dec 18, 2023
1 parent e5a4629 commit 467cf1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/include/cpp11/r_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class r_string {
r_string(SEXP data) : data_(data) {}
r_string(const char* data) : data_(safe[Rf_mkCharCE](data, CE_UTF8)) {}
r_string(const std::string& data)
: data_(safe[Rf_mkCharLenCE](data.c_str(), static_cast<int>(data.size()), CE_UTF8)) {}
: data_(
safe[Rf_mkCharLenCE](data.c_str(), static_cast<int>(data.size()), CE_UTF8)) {}

operator SEXP() const { return data_; }
operator sexp() const { return data_; }
Expand Down

0 comments on commit 467cf1e

Please sign in to comment.