summaryrefslogtreecommitdiffstats
path: root/base/stack_container.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 15:01:12 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 15:01:12 +0000
commit52a261f59b20e89f8c5936bce642362f8e367b57 (patch)
treefcc7b3c100caaf43848cd9a241beafc883f93b7d /base/stack_container.h
parent7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff)
downloadchromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip
chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz
chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2
NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules: - <=80 cols - no trailing whitespaces - svn:eol-style=LF git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stack_container.h')
-rw-r--r--base/stack_container.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/base/stack_container.h b/base/stack_container.h
index 98c4ac0..1b325b1 100644
--- a/base/stack_container.h
+++ b/base/stack_container.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_STACK_CONTAINER_H__
-#define BASE_STACK_CONTAINER_H__
+#ifndef BASE_STACK_CONTAINER_H_
+#define BASE_STACK_CONTAINER_H_
#include <string>
#include <vector>
@@ -71,7 +71,7 @@ class StackAllocator : public std::allocator<T> {
};
// For the straight up copy c-tor, we can share storage.
- StackAllocator(const StackAllocator<T, stack_capacity>& rhs)
+ StackAllocator(const StackAllocator<T, stack_capacity>& rhs)
: source_(rhs.source_) {
}
@@ -80,9 +80,9 @@ class StackAllocator : public std::allocator<T> {
// in the class _Container_base_aux_alloc_real (from <xutility>)
// if the constructor does not exist.
// For this constructor, we cannot share storage; there's
- // no guarantee that the Source buffer of Ts is large enough
+ // no guarantee that the Source buffer of Ts is large enough
// for Us.
- // TODO: If we were fancy pants, perhaps we could share storage
+ // TODO: If we were fancy pants, perhaps we could share storage
// iff sizeof(T) == sizeof(U).
template<typename U, size_t other_capacity>
StackAllocator(const StackAllocator<U, other_capacity>& other)
@@ -245,10 +245,9 @@ class StackVector : public StackContainer<
// Vectors are commonly indexed, which isn't very convenient even with
// operator-> (using "->at()" does exception stuff we don't want).
T& operator[](size_t i) { return this->container().operator[](i); }
- const T& operator[](size_t i) const {
- return this->container().operator[](i);
+ const T& operator[](size_t i) const {
+ return this->container().operator[](i);
}
};
-#endif // BASE_STACK_CONTAINER_H__
-
+#endif // BASE_STACK_CONTAINER_H_