mirror of
https://github.com/openharmony/third_party_backends.git
synced 2026-07-19 19:44:20 -04:00
genesys: fix gcc-4.8 compile
Fixes:
genesys/utilities.h:229:23: error: invalid initialization of non-const reference of type 'std::basic_ios<char>&' from an rvalue of type '<brace-enclosed initializer list>'
stream_{stream}
^
genesys/image_pipeline.cpp:715:19: error: invalid initialization of non-const reference of type 'genesys::ImagePipelineNode&' from an rvalue of type '<brace-enclosed initializer list>'
source_{source}
^
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
(cherry picked from commit 3ed6b0c76e)
This commit is contained in:
committed by
Povilas Kanapickas
parent
a7df0813d1
commit
358c40d08b
@@ -712,7 +712,7 @@ ImagePipelineNodeCalibrate::ImagePipelineNodeCalibrate(ImagePipelineNode& source
|
||||
const std::vector<std::uint16_t>& bottom,
|
||||
const std::vector<std::uint16_t>& top,
|
||||
std::size_t x_start) :
|
||||
source_{source}
|
||||
source_(source)
|
||||
{
|
||||
std::size_t size = 0;
|
||||
if (bottom.size() >= x_start && top.size() >= x_start) {
|
||||
|
||||
@@ -226,7 +226,7 @@ class BasicStreamStateSaver
|
||||
{
|
||||
public:
|
||||
explicit BasicStreamStateSaver(std::basic_ios<Char, Traits>& stream) :
|
||||
stream_{stream}
|
||||
stream_(stream)
|
||||
{
|
||||
flags_ = stream_.flags();
|
||||
width_ = stream_.width();
|
||||
|
||||
Reference in New Issue
Block a user