1
::XML_SetElementHandler(parser, startElementFeature, endElementFeature);
80 void startElementFeature(void *userData, const char *name, const char **atts);
CameraProfiles.cpp:865:75: error: cannot convert 'android::CameraProfiles::startElementFeature' from type
'void (android::CameraProfiles::)(void*, const char*, const char**)'
to type
'XML_StartElementHandler {aka void (__attribute__((cdecl)) *)(void*, const char*, const char**)}'
在void startElementFeature前加 static
2 错误2
Vector<CameraInfo> mCameras;
mCameras[profiles->mCurrentSensor].audioRecording = atts[1];
mCameras.editItemAt(profiles->mCurrentSensor).audioRecording = atts[1];
system/core/include/utils/Vector.h
278 template<class TYPE> inline
279 const TYPE& Vector<TYPE>::operator[](size_t index) const {
280 LOG_FATAL_IF(index>=size(),
281 "%s: index=%u out of range (%u)", __PRETTY_FUNCTION__,
282 int(index), int(size()));
283 return *(array() + index);
284 }
296 template<class TYPE> inline
297 TYPE& Vector<TYPE>::editItemAt(size_t index) {
298 return *( static_cast<TYPE *>(editItemLocation(index)) );
299 }
300