diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-04-27 11:29:23 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-04-27 11:38:12 -0700 |
commit | c6baf563ba6aa207a48317c177b29f1d2b70cf3d (patch) | |
tree | 38cb5ab3e8ce0ebe0bcdace644378ad037adb37f /native/android/asset_manager.cpp | |
parent | cd4f7e12037acd16f500dc9a4be98e51fe58a11b (diff) |
Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
Diffstat (limited to 'native/android/asset_manager.cpp')
-rw-r--r-- | native/android/asset_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/asset_manager.cpp b/native/android/asset_manager.cpp index dee3f8c700ed..0e5e5c60d506 100644 --- a/native/android/asset_manager.cpp +++ b/native/android/asset_manager.cpp @@ -39,7 +39,7 @@ struct AAssetDir { size_t mCurFileIndex; String8 mCachedFileName; - AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { } + explicit AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { } ~AAssetDir() { delete mAssetDir; } }; @@ -48,7 +48,7 @@ struct AAssetDir { struct AAsset { Asset* mAsset; - AAsset(Asset* asset) : mAsset(asset) { } + explicit AAsset(Asset* asset) : mAsset(asset) { } ~AAsset() { delete mAsset; } }; |