commit | 78624e41da166712aaa5ae47e4d3467337ac810a | [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 | b7e1e6c75b4837d34bf29180974052167ac5d3f0 | |
parent | be65399baf23855094596e27c25763ff92e9e027 [diff] [blame] |
Add remove method in CameraParameters class. bug:2672651 Change-Id: I537c817b5ca6a3d925f22febe9a5769156354d00
diff --git a/libs/camera/CameraParameters.cpp b/libs/camera/CameraParameters.cpp index b50d4d2..65fd7ac 100644 --- a/libs/camera/CameraParameters.cpp +++ b/libs/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.