[1/4] include: Remove unnecessary semicolons
diff mbox series

Message ID 20190803015558.4143-1-rosenp@gmail.com
State New
Headers show
Series
  • [1/4] include: Remove unnecessary semicolons
Related show

Commit Message

Rosen Penev Aug. 3, 2019, 1:55 a.m. UTC
Discovered with clang's -Wextra-semi

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 include/iterator_base | 4 ++--
 include/stack         | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox series

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(); }