Fix clang style warnings in webrtc/modules/audio_coding/neteq

Mostly this consists of marking functions with override when
applicable, and moving function bodies from .h to .cc files.

BUG=163
R=henrik.lundin@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/44109004

Cr-Commit-Position: refs/heads/master@{#8960}
This commit is contained in:
Karl Wiberg
2015-04-09 15:44:22 +02:00
parent 411777584c
commit 7f6c4d42a2
30 changed files with 209 additions and 116 deletions

View File

@ -22,20 +22,12 @@ namespace webrtc {
class AudioVector {
public:
// Creates an empty AudioVector.
AudioVector()
: array_(new int16_t[kDefaultInitialSize]),
first_free_ix_(0),
capacity_(kDefaultInitialSize) {}
AudioVector();
// Creates an AudioVector with an initial size.
explicit AudioVector(size_t initial_size)
: array_(new int16_t[initial_size]),
first_free_ix_(initial_size),
capacity_(initial_size) {
memset(array_.get(), 0, initial_size * sizeof(int16_t));
}
explicit AudioVector(size_t initial_size);
virtual ~AudioVector() {}
virtual ~AudioVector();
// Deletes all values and make the vector empty.
virtual void Clear();
@ -94,10 +86,10 @@ class AudioVector {
virtual void CrossFade(const AudioVector& append_this, size_t fade_length);
// Returns the number of elements in this AudioVector.
virtual size_t Size() const { return first_free_ix_; }
virtual size_t Size() const;
// Returns true if this AudioVector is empty.
virtual bool Empty() const { return (first_free_ix_ == 0); }
virtual bool Empty() const;
// Accesses and modifies an element of AudioVector.
const int16_t& operator[](size_t index) const;