commit | adbda96f6a05507788bb4163d7fbe8a95948f0a5 | [log] [tgz] |
---|---|---|
author | Wu-cheng Li <wuchengli@google.com> | Tue May 11 12:11:56 2010 +0800 |
committer | Wu-cheng Li <wuchengli@google.com> | Tue May 11 12:54:14 2010 +0800 |
tree | b7ebd296b4ac9c9d665c36f993eae6a68b7840df | |
parent | ee7ff20e69498ebd53dd9717a0f984188341a75e [diff] [blame] |
Add remove method in CameraParameters class. bug:2672651 Change-Id: I537c817b5ca6a3d925f22febe9a5769156354d00
diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp index b50d4d2..65fd7ac 100644 --- a/camera/CameraParameters.cpp +++ b/camera/CameraParameters.cpp
@@ -253,6 +253,11 @@ return strtof(v, 0); } +void CameraParameters::remove(const char *key) +{ + mMap.removeItem(String8(key)); +} + static int parse_size(const char *str, int &width, int &height) { // Find the width.