summaryrefslogtreecommitdiffstats
path: root/drm/common
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-15 14:55:53 -0700
committerMark Salyzyn <salyzyn@google.com>2014-04-15 14:57:31 -0700
commit3ab368e0810d894dcbc0971350c095049478a055 (patch)
treea50053c391da8c02797158395f2ecfec83218855 /drm/common
parentdb43b34c3428e480f8c4c66e7e88f4001f37f91e (diff)
downloadframeworks_av-3ab368e0810d894dcbc0971350c095049478a055.zip
frameworks_av-3ab368e0810d894dcbc0971350c095049478a055.tar.gz
frameworks_av-3ab368e0810d894dcbc0971350c095049478a055.tar.bz2
media: use size_t for integer iterator to Vector::size()
Change-Id: I0a744dc7815a86a993df9b0623440be620ec8903
Diffstat (limited to 'drm/common')
-rw-r--r--drm/common/DrmSupportInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drm/common/DrmSupportInfo.cpp b/drm/common/DrmSupportInfo.cpp
index 5400bdd..584c6a6 100644
--- a/drm/common/DrmSupportInfo.cpp
+++ b/drm/common/DrmSupportInfo.cpp
@@ -47,7 +47,7 @@ bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const {
return false;
}
- for (unsigned int i = 0; i < mMimeTypeVector.size(); i++) {
+ for (size_t i = 0; i < mMimeTypeVector.size(); i++) {
const String8 item = mMimeTypeVector.itemAt(i);
if (!strcasecmp(item.string(), mimeType.string())) {
@@ -58,7 +58,7 @@ bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const {
}
bool DrmSupportInfo::isSupportedFileSuffix(const String8& fileType) const {
- for (unsigned int i = 0; i < mFileSuffixVector.size(); i++) {
+ for (size_t i = 0; i < mFileSuffixVector.size(); i++) {
const String8 item = mFileSuffixVector.itemAt(i);
if (!strcasecmp(item.string(), fileType.string())) {