summaryrefslogtreecommitdiff
path: root/native/android/asset_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'native/android/asset_manager.cpp')
-rw-r--r--native/android/asset_manager.cpp4
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; }
};