Use std::move to transfer ownership of DataBufs.

This commit is contained in:
Kevin Backhouse
2021-10-10 23:56:00 +01:00
parent 4901c5dba6
commit 81cfc162c1
15 changed files with 64 additions and 85 deletions
+2 -2
View File
@@ -411,12 +411,12 @@ namespace Exiv2
skip+=4;
if ( colour_type == "rICC" || colour_type == "prof" ) {
DataBuf profile(data.c_data(skip),data.size()-skip);
setIccProfile(profile);
setIccProfile(std::move(profile));
} else if ( meth == 2 && prec == 0 && approx == 0 ) {
// JP2000 files have a 3 byte head // 2 0 0 icc......
skip -= 1 ;
DataBuf profile(data.c_data(skip),data.size()-skip);
setIccProfile(profile);
setIccProfile(std::move(profile));
}
}
} break;