chore: XWindowsClipboardBMPConverter, use auto where possible
This commit is contained in:
parent
39b49acb56
commit
b103f28202
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ std::string XWindowsClipboardBMPConverter::toIClipboard(const std::string &bmp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check BMP file header
|
// check BMP file header
|
||||||
const uint8_t *rawBMPHeader = reinterpret_cast<const uint8_t *>(bmp.data());
|
const auto *rawBMPHeader = reinterpret_cast<const uint8_t *>(bmp.data());
|
||||||
if (rawBMPHeader[0] != 'B' || rawBMPHeader[1] != 'M') {
|
if (rawBMPHeader[0] != 'B' || rawBMPHeader[1] != 'M') {
|
||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue