Skip to content

Commit a80ae91

Browse files
committed
fix typos
1 parent 8fdaaef commit a80ae91

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

inst/include/cpp11/data_frame.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class data_frame : public cpp11::data_frame {
8989
using cpp11::data_frame::ncol;
9090
using cpp11::data_frame::nrow;
9191

92-
attribute_proxy<data_frame> attr(const char* name) const const { return {*this, name}; }
92+
attribute_proxy<data_frame> attr(const char* name) const { return {*this, name}; }
9393

9494
attribute_proxy<data_frame> attr(const std::string& name) const {
9595
return {*this, name.c_str()};

inst/include/cpp11/r_bool.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ enable_if_r_bool<T, SEXP> as_sexp(T from) {
6666
return res;
6767
}
6868

69-
// @pachadotdev: + noexcept
7069
template <>
71-
inline r_bool na() noexcept {
70+
inline r_bool na() {
7271
return NA_LOGICAL;
7372
}
7473

inst/include/cpp11/sexp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class sexp {
7070
/// DEPRECATED: Do not use this, it will be removed soon.
7171
operator double() const { return REAL_ELT(data_, 0); }
7272
/// DEPRECATED: Do not use this, it will be removed soon.
73-
operator size_t() const { returnv REAL_ELT(data_, 0); }
73+
operator size_t() const { return REAL_ELT(data_, 0); }
7474
/// DEPRECATED: Do not use this, it will be removed soon.
7575
operator bool() const { return LOGICAL_ELT(data_, 0); }
7676
};

inst/include/cpp11/strings.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace cpp11 {
1818

1919
template <>
20-
inline constexpr SEXPTYPE r_vector<r_string>::get_sexptype() {
20+
inline SEXPTYPE r_vector<r_string>::get_sexptype() {
2121
return STRSXP;
2222
}
2323

0 commit comments

Comments
 (0)