libcamera: base: thread: Use std::unique_ptr instead of raw pointer

An `std::unique_ptr` is safer and expresses the intent better, so use that.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
Barnabás Pőcze
2025-06-05 14:07:24 +02:00
parent 760456acfc
commit 4eacabf5c6
2 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ private:
ThreadData *targetData);
std::thread thread_;
ThreadData *data_;
std::unique_ptr<ThreadData> data_;
};
} /* namespace libcamera */