Skip to content

Commit dc93fb8

Browse files
authored
Remove trailing ; that aren't required (#399)
1 parent eef7c51 commit dc93fb8

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

inst/include/cpp11/doubles.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ inline void r_vector<double>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
4848
typename r_vector::underlying_type* buf) {
4949
// NOPROTECT: likely too costly to unwind protect here
5050
REAL_GET_REGION(x, i, n, buf);
51-
};
51+
}
5252

5353
template <>
5454
inline bool r_vector<double>::const_iterator::use_buf(bool is_altrep) {

inst/include/cpp11/integers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inline void r_vector<int>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
4949
typename r_vector::underlying_type* buf) {
5050
// NOPROTECT: likely too costly to unwind protect here
5151
INTEGER_GET_REGION(x, i, n, buf);
52-
};
52+
}
5353

5454
template <>
5555
inline bool r_vector<int>::const_iterator::use_buf(bool is_altrep) {

inst/include/cpp11/list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ template <>
5252
inline void r_vector<SEXP>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
5353
typename r_vector::underlying_type* buf) {
5454
cpp11::stop("Unreachable!");
55-
};
55+
}
5656

5757
template <>
5858
inline bool r_vector<SEXP>::const_iterator::use_buf(bool is_altrep) {

inst/include/cpp11/logicals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ inline void r_vector<r_bool>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
4848
typename r_vector::underlying_type* buf) {
4949
// NOPROTECT: likely too costly to unwind protect here
5050
LOGICAL_GET_REGION(x, i, n, buf);
51-
};
51+
}
5252

5353
template <>
5454
inline bool r_vector<r_bool>::const_iterator::use_buf(bool is_altrep) {

inst/include/cpp11/r_vector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ inline r_vector<T>& r_vector<T>::operator=(const r_vector& rhs) {
420420
length_ = rhs.length_;
421421

422422
return *this;
423-
};
423+
}
424424

425425
// Same reasoning as `r_vector(r_vector&& x)` constructor
426426
template <typename T>
@@ -446,7 +446,7 @@ inline r_vector<T>& r_vector<T>::operator=(r_vector&& rhs) {
446446
rhs.length_ = 0;
447447

448448
return *this;
449-
};
449+
}
450450

451451
template <typename T>
452452
inline r_vector<T>::operator SEXP() const {

inst/include/cpp11/raws.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ inline void r_vector<uint8_t>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
5656
typename r_vector::underlying_type* buf) {
5757
// NOPROTECT: likely too costly to unwind protect here
5858
RAW_GET_REGION(x, i, n, buf);
59-
};
59+
}
6060

6161
template <>
6262
inline bool r_vector<uint8_t>::const_iterator::use_buf(bool is_altrep) {

inst/include/cpp11/strings.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ template <>
4949
inline void r_vector<r_string>::get_region(SEXP x, R_xlen_t i, R_xlen_t n,
5050
typename r_vector::underlying_type* buf) {
5151
cpp11::stop("Unreachable!");
52-
};
52+
}
5353

5454
template <>
5555
inline bool r_vector<r_string>::const_iterator::use_buf(bool is_altrep) {

0 commit comments

Comments
 (0)