chore: XWindowsClipboardAnyBitmapConvertor, use auto where possible
This commit is contained in:
parent
5d4fbc8ea6
commit
39b49acb56
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ std::string XWindowsClipboardAnyBitmapConverter::fromIClipboard(const std::strin
|
||||||
{
|
{
|
||||||
// fill BMP info header with native-endian data
|
// fill BMP info header with native-endian data
|
||||||
CBMPInfoHeader infoHeader;
|
CBMPInfoHeader infoHeader;
|
||||||
const uint8_t *rawBMPInfoHeader = reinterpret_cast<const uint8_t *>(bmp.data());
|
const auto *rawBMPInfoHeader = reinterpret_cast<const uint8_t *>(bmp.data());
|
||||||
infoHeader.biSize = fromLEU32(rawBMPInfoHeader + 0);
|
infoHeader.biSize = fromLEU32(rawBMPInfoHeader + 0);
|
||||||
infoHeader.biWidth = fromLES32(rawBMPInfoHeader + 4);
|
infoHeader.biWidth = fromLES32(rawBMPInfoHeader + 4);
|
||||||
infoHeader.biHeight = fromLES32(rawBMPInfoHeader + 8);
|
infoHeader.biHeight = fromLES32(rawBMPInfoHeader + 8);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue