Replace MapWrapper with std::map<>.
MapWrapper was needed on some platforms where STL wasn't supported, we now use std::map<> directly. BUG=2164 TEST=trybots R=henrike@webrtc.org, phoglund@webrtc.org, stefan@webrtc.org, wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2001004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4530 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -161,11 +161,12 @@ int32_t DeviceInfoAndroid::GetDeviceName(
|
||||
|
||||
int32_t DeviceInfoAndroid::CreateCapabilityMap(
|
||||
const char* deviceUniqueIdUTF8) {
|
||||
MapItem* item = NULL;
|
||||
while ((item = _captureCapabilities.Last())) {
|
||||
delete (VideoCaptureCapability*) item->GetItem();
|
||||
_captureCapabilities.Erase(item);
|
||||
}
|
||||
for (std::map<int, VideoCaptureCapability*>::iterator it =
|
||||
_captureCapabilities.begin();
|
||||
it != _captureCapabilities.end();
|
||||
++it)
|
||||
delete it->second;
|
||||
_captureCapabilities.clear();
|
||||
|
||||
JNIEnv *env;
|
||||
jclass javaCmDevInfoClass;
|
||||
@ -247,7 +248,7 @@ int32_t DeviceInfoAndroid::CreateCapabilityMap(
|
||||
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
|
||||
"%s: Cap width %d, height %d, fps %d", __FUNCTION__,
|
||||
cap->width, cap->height, cap->maxFPS);
|
||||
_captureCapabilities.Insert(i, cap);
|
||||
_captureCapabilities[i] = cap;
|
||||
}
|
||||
|
||||
_lastUsedDeviceNameLength = strlen((char*) deviceUniqueIdUTF8);
|
||||
@ -259,9 +260,9 @@ int32_t DeviceInfoAndroid::CreateCapabilityMap(
|
||||
|
||||
VideoCaptureAndroid::ReleaseAndroidDeviceInfoObjects(attached);
|
||||
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
|
||||
"CreateCapabilityMap %d", _captureCapabilities.Size());
|
||||
"CreateCapabilityMap %d", _captureCapabilities.size());
|
||||
|
||||
return _captureCapabilities.Size();
|
||||
return _captureCapabilities.size();
|
||||
}
|
||||
|
||||
int32_t DeviceInfoAndroid::GetOrientation(
|
||||
|
||||
Reference in New Issue
Block a user