Disallow Copy and Assign WebVtt File Buffer

We should never need to copy or assign the webvtt file buffer
so this change enforces that.

Change-Id: I119865e96c0188781adbe115beb2486b1b56542a
This commit is contained in:
Aaron Vaage 2018-05-23 15:02:07 -07:00
parent d56efd147a
commit b01de0bfb6
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ class WebVttFileBuffer {
size_t sample_count() const { return sample_count_; } size_t sample_count() const { return sample_count_; }
private: private:
// TODO(vaage): Add missing deleted copy and assign constructors. WebVttFileBuffer(const WebVttFileBuffer&) = delete;
WebVttFileBuffer& operator=(const WebVttFileBuffer&) = delete;
std::string buffer_; std::string buffer_;
size_t sample_count_ = 0; size_t sample_count_ = 0;
}; };