Add missing consts for consistency

These getters do not modify the instance.

PiperOrigin-RevId: 258345084
This commit is contained in:
andrewlewis 2019-07-16 13:03:10 +01:00 committed by Oliver Woodman
parent 7760eca238
commit 09147ff548

View File

@ -48,9 +48,11 @@ class FLACParser {
return mStreamInfo; return mStreamInfo;
} }
bool isVorbisCommentsValid() { return mVorbisCommentsValid; } bool isVorbisCommentsValid() const { return mVorbisCommentsValid; }
std::vector<std::string> getVorbisComments() { return mVorbisComments; } const std::vector<std::string>& getVorbisComments() const {
return mVorbisComments;
}
int64_t getLastFrameTimestamp() const { int64_t getLastFrameTimestamp() const {
return (1000000LL * mWriteHeader.number.sample_number) / getSampleRate(); return (1000000LL * mWriteHeader.number.sample_number) / getSampleRate();