libcamera: ipa_module: Avoid unnecessary copy when getting signature

The `signature()` getter can just return a reference to the private vector
member variable, and let the caller make a copy if needed. Since the
return type is const qualified, this was likely the original intention.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Barnabás Pőcze 2025-03-21 10:28:41 +01:00
parent 86c45c8fdf
commit f31da7272e
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ public:
bool isValid() const;
const struct IPAModuleInfo &info() const;
const std::vector<uint8_t> signature() const;
const std::vector<uint8_t> &signature() const;
const std::string &path() const;
bool load();