Fix google-explicit-constructor warnings in media utils.

* Add explicit keyword to conversion constructors.
Bug: 28341362
Test: build with WITH_TIDY=1

Change-Id: I13958693f28fae9016124a43cd211e5302ed8d51
This commit is contained in:
Chih-Hung Hsieh
2016-08-29 14:49:57 -07:00
parent c4c4a1e76e
commit bd42349f7e

View File

@@ -37,7 +37,7 @@ private:
size_t mPosition;
public:
AssetStream(SkStream* stream);
explicit AssetStream(SkStream* stream);
~AssetStream();
// Reads 'length' amount of bytes from 'offset' to 'data'. The 'data' buffer
@@ -60,7 +60,7 @@ private:
const size_t kMinSizeToRead = 8192;
public:
BufferedStream(SkStream* stream);
explicit BufferedStream(SkStream* stream);
~BufferedStream();
// Reads 'length' amount of bytes from 'offset' to 'data'. The 'data' buffer
@@ -79,8 +79,8 @@ private:
size_t mPosition;
public:
FileStream(const int fd);
FileStream(const String8 filename);
explicit FileStream(const int fd);
explicit FileStream(const String8 filename);
~FileStream();
// Reads 'length' amount of bytes from 'offset' to 'data'. The 'data' buffer