mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Specify missing default destructor and assignment operator declarations in ImageRequest (#52099)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52099 # Changelog: [Internal] - Fixes a linter warning for the `ImageRequest` class declaration (AKA "C++ rule of 5"). Reviewed By: javache Differential Revision: D76888523 fbshipit-source-id: aa080a582942bd083030d6b6ecd82294566b507c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
73133a31d5
commit
bc6b4f0525
@@ -39,10 +39,21 @@ class ImageRequest final {
|
||||
*/
|
||||
ImageRequest(ImageRequest&& other) noexcept = default;
|
||||
|
||||
/*
|
||||
* Move assignment operator.
|
||||
*/
|
||||
ImageRequest& operator=(ImageRequest&& other) noexcept = default;
|
||||
|
||||
/*
|
||||
* `ImageRequest` does not support copying by design.
|
||||
*/
|
||||
ImageRequest(const ImageRequest& other) = delete;
|
||||
ImageRequest& operator=(const ImageRequest& other) = delete;
|
||||
|
||||
/*
|
||||
* Destructor
|
||||
*/
|
||||
~ImageRequest() = default;
|
||||
|
||||
/*
|
||||
* Returns the Image Source associated with the request.
|
||||
|
||||
Reference in New Issue
Block a user