diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-01-08 15:03:16 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-01-08 15:03:16 +0000 |
commit | 9aa92aa2b504d9530125a6a164f76c11f45d8bb5 (patch) | |
tree | 8bac90f44aeb58413b4d76cd41436e1bc53c81bb /src/common/include | |
parent | d3280484c8faa248ac2834401272d8b53b6d1866 (diff) |
cpplint and cppcheck fixes
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@956 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: f54c0a2a375e8818c7162aec05249e446361834b
Diffstat (limited to 'src/common/include')
-rw-r--r-- | src/common/include/gudhi/allocator.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/include/gudhi/allocator.h b/src/common/include/gudhi/allocator.h index b825173b..4ede14e4 100644 --- a/src/common/include/gudhi/allocator.h +++ b/src/common/include/gudhi/allocator.h @@ -20,8 +20,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef GUDHI_ALLOCATOR_H_ -#define GUDHI_ALLOCATOR_H_ +#ifndef ALLOCATOR_H_ +#define ALLOCATOR_H_ #include <memory> #include <utility> @@ -43,13 +43,13 @@ struct no_init_allocator : Base { // Do nothing: that's the whole point! template<class P> - void construct(P*)noexcept{} + void construct(P*) noexcept {} - template<class P, class...U> void construct(P*p, U&&...u){ + template<class P, class...U> void construct(P*p, U&&...u) { Base_traits::construct(*(Base*)this, p, std::forward<U>(u)...); } }; } // namespace Gudhi -#endif // GUDHI_ALLOCATOR_H_ +#endif // ALLOCATOR_H_ |