Correct ampersands as well

This commit is contained in:
mathieui
2016-01-21 21:27:56 +01:00
parent 3e283ea9f1
commit f15ffda5a7
17 changed files with 86 additions and 86 deletions

View File

@ -22,7 +22,7 @@ class FixedSizeQueue
int count; // sacrifice 4 bytes for a simpler implementation. may optimize away in the future.
// Make copy constructor private for now.
FixedSizeQueue(FixedSizeQueue &other) {}
FixedSizeQueue(FixedSizeQueue& other) {}
public:
FixedSizeQueue()
@ -62,13 +62,13 @@ public:
T pop_front()
{
const T &temp = storage[head];
const T& temp = storage[head];
pop();
return temp;
}
T &front() { return storage[head]; }
const T &front() const { return storage[head]; }
T& front() { return storage[head]; }
const T& front() const { return storage[head]; }
size_t size() const
{