[git commit] include: Remove unnecessary semicolons
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Oct 4 10:30:52 UTC 2019
commit: https://git.uclibc.org/uClibc++/commit/?id=c165aee71f736a9599d4d4a1563fbbe394e849cf
branch: https://git.uclibc.org/uClibc++/commit/?id=refs/heads/master
Discovered with clang's -Wextra-semi
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/iterator_base | 4 ++--
include/stack | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/iterator_base b/include/iterator_base
index 1cae589..e112a7f 100644
--- a/include/iterator_base
+++ b/include/iterator_base
@@ -139,7 +139,7 @@ namespace std{
public:
typedef Iterator iterator_type;
- reverse_iterator() : current(){};
+ reverse_iterator() : current(){}
explicit reverse_iterator(Iterator x) : current(x) { }
template<class U> reverse_iterator(const reverse_iterator<U> &x) : current(x.base()){}
@@ -225,7 +225,7 @@ namespace std{
Container& container;
public:
typedef Container container_type;
- explicit back_insert_iterator(Container& x):container(x) {};
+ explicit back_insert_iterator(Container& x):container(x) {}
back_insert_iterator<Container>& operator=(const typename Container::value_type& value){
container.push_back(value);
return *this;
diff --git a/include/stack b/include/stack
index d4861b3..ea697f1 100644
--- a/include/stack
+++ b/include/stack
@@ -34,7 +34,7 @@ namespace std{
typedef typename Container::size_type size_type;
typedef Container container_type;
- explicit stack(const Container& a = Container()) : c(a) { };
+ explicit stack(const Container& a = Container()) : c(a) { }
bool empty() const { return c.empty(); }
size_type size() const { return c.size(); }
value_type& top() { return c.back(); }
More information about the uClibc-cvs
mailing list