mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
android: camera_device: Mark abortRequest() and notifyError() as const
abortRequest() and notifyError() do not modify any members of CameraDevice hence, these functions can be const. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
8e7feeb5e7
commit
05c87a36cb
2 changed files with 4 additions and 4 deletions
|
@ -860,7 +860,7 @@ int CameraDevice::processControls(Camera3RequestDescriptor *descriptor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void CameraDevice::abortRequest(camera3_capture_request_t *request)
|
||||
void CameraDevice::abortRequest(camera3_capture_request_t *request) const
|
||||
{
|
||||
notifyError(request->frame_number, nullptr, CAMERA3_MSG_ERROR_REQUEST);
|
||||
|
||||
|
@ -1258,7 +1258,7 @@ void CameraDevice::notifyShutter(uint32_t frameNumber, uint64_t timestamp)
|
|||
}
|
||||
|
||||
void CameraDevice::notifyError(uint32_t frameNumber, camera3_stream_t *stream,
|
||||
camera3_error_msg_code code)
|
||||
camera3_error_msg_code code) const
|
||||
{
|
||||
camera3_notify_msg_t notify = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue