From 7cb3a6fbe8a34769a3dcd450f6e46c450434b657 Mon Sep 17 00:00:00 2001 From: zerotypos-found Date: Tue, 20 Dec 2016 11:03:57 +0900 Subject: [PATCH] [inspection report] remove tabs and fix copyright notice format --- bench/bench_static_vector.cpp | 4 ++-- include/boost/container/detail/advanced_insert_int.hpp | 4 ++-- include/boost/container/new_allocator.hpp | 6 +++--- include/boost/container/small_vector.hpp | 2 +- test/map_test.cpp | 8 ++++---- test/set_test.cpp | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bench/bench_static_vector.cpp b/bench/bench_static_vector.cpp index bfcc4de..4553dc7 100644 --- a/bench/bench_static_vector.cpp +++ b/bench/bench_static_vector.cpp @@ -4,8 +4,8 @@ // @date Aug 14, 2011 // @author Andrew Hundt // -// (C) 2011-2013 Andrew Hundt -// (C) 2013-2013 Ion Gaztanaga +// (C) Copyright 2011-2013 Andrew Hundt +// (C) Copyright 2013-2013 Ion Gaztanaga // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at diff --git a/include/boost/container/detail/advanced_insert_int.hpp b/include/boost/container/detail/advanced_insert_int.hpp index 278cd1b..1050857 100644 --- a/include/boost/container/detail/advanced_insert_int.hpp +++ b/include/boost/container/detail/advanced_insert_int.hpp @@ -107,8 +107,8 @@ struct insert_n_copies_proxy void copy_n_and_update(Allocator &, Iterator p, size_type n) const { - for (; 0 < n; --n, ++p){ - *p = v_; + for (; 0 < n; --n, ++p){ + *p = v_; } } diff --git a/include/boost/container/new_allocator.hpp b/include/boost/container/new_allocator.hpp index 9304a9c..51065ef 100644 --- a/include/boost/container/new_allocator.hpp +++ b/include/boost/container/new_allocator.hpp @@ -140,9 +140,9 @@ class new_allocator //!Throws std::bad_alloc if there is no enough memory pointer allocate(size_type count) { - if(BOOST_UNLIKELY(count > this->max_size())) - throw_bad_alloc(); - return static_cast(::operator new(count*sizeof(T))); + if(BOOST_UNLIKELY(count > this->max_size())) + throw_bad_alloc(); + return static_cast(::operator new(count*sizeof(T))); } //!Deallocates previously allocated memory. diff --git a/include/boost/container/small_vector.hpp b/include/boost/container/small_vector.hpp index e23b54f..1444624 100644 --- a/include/boost/container/small_vector.hpp +++ b/include/boost/container/small_vector.hpp @@ -507,7 +507,7 @@ class small_vector : public small_vector_base public: BOOST_CONTAINER_FORCEINLINE small_vector() - BOOST_NOEXCEPT_IF(container_detail::is_nothrow_default_constructible::value) + BOOST_NOEXCEPT_IF(container_detail::is_nothrow_default_constructible::value) : base_type(initial_capacity_t(), internal_capacity()) {} diff --git a/test/map_test.cpp b/test/map_test.cpp index ae7abf0..121abb2 100644 --- a/test/map_test.cpp +++ b/test/map_test.cpp @@ -391,10 +391,10 @@ int main () //Test std::pair value type as tree has workarounds to make old std::pair //implementations movable that can break things { - boost::container::map s; - std::pair p; - s.insert(p); - s.emplace(p); + boost::container::map s; + std::pair p; + s.insert(p); + s.emplace(p); } //////////////////////////////////// diff --git a/test/set_test.cpp b/test/set_test.cpp index 5caaa29..c2ce696 100644 --- a/test/set_test.cpp +++ b/test/set_test.cpp @@ -379,10 +379,10 @@ int main () //Test std::pair value type as tree has workarounds to make old std::pair //implementations movable that can break things { - boost::container::set > s; - std::pair p(0, 0); - s.insert(p); - s.emplace(p); + boost::container::set > s; + std::pair p(0, 0); + s.insert(p); + s.emplace(p); } test_merge_from_different_comparison();