aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-22 20:00:11 +0100
committerJohannes Schickel2012-02-22 20:00:11 +0100
commit417cd7625c44bcae1b40c0a0b86ea6592ffd813c (patch)
treeb54696298f02b3556e8d820f31df3823430b6adc
parentd6ac36930337c178f92ddccbd6946d7a98a9c7a5 (diff)
downloadscummvm-rg350-417cd7625c44bcae1b40c0a0b86ea6592ffd813c.tar.gz
scummvm-rg350-417cd7625c44bcae1b40c0a0b86ea6592ffd813c.tar.bz2
scummvm-rg350-417cd7625c44bcae1b40c0a0b86ea6592ffd813c.zip
COMMON: Slight formatting fixes in array.h.
-rw-r--r--common/array.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/common/array.h b/common/array.h
index 0b952eb988..a2c3023362 100644
--- a/common/array.h
+++ b/common/array.h
@@ -24,7 +24,7 @@
#include "common/scummsys.h"
#include "common/algorithm.h"
-#include "common/textconsole.h" // For error()
+#include "common/textconsole.h" // For error()
#include "common/memory.h"
namespace Common {
@@ -153,17 +153,17 @@ public:
// TODO: insert, remove, ...
- T& operator[](size_type idx) {
+ T &operator[](size_type idx) {
assert(idx < _size);
return _storage[idx];
}
- const T& operator[](size_type idx) const {
+ const T &operator[](size_type idx) const {
assert(idx < _size);
return _storage[idx];
}
- Array<T>& operator=(const Array<T> &array) {
+ Array<T> &operator=(const Array<T> &array) {
if (this == &array)
return *this;
@@ -201,24 +201,24 @@ public:
}
return true;
}
+
bool operator!=(const Array<T> &other) const {
return !(*this == other);
}
-
- iterator begin() {
+ iterator begin() {
return _storage;
}
- iterator end() {
+ iterator end() {
return _storage + _size;
}
- const_iterator begin() const {
+ const_iterator begin() const {
return _storage;
}
- const_iterator end() const {
+ const_iterator end() const {
return _storage + _size;
}