diff --git a/src/lib/deskflow/IClipboard.cpp b/src/lib/deskflow/IClipboard.cpp index 5f000df94..6c01e902d 100644 --- a/src/lib/deskflow/IClipboard.cpp +++ b/src/lib/deskflow/IClipboard.cpp @@ -30,7 +30,7 @@ void IClipboard::unmarshall(IClipboard *clipboard, const std::string &data, Time // read each format for (uint32_t i = 0; i < numFormats; ++i) { // get the format id - IClipboard::EFormat format = static_cast(readUInt32(index)); + auto format = static_cast(readUInt32(index)); index += 4; // get the size of the format data @@ -116,7 +116,7 @@ bool IClipboard::copy(IClipboard *dst, const IClipboard *src, Time time) if (dst->open(time)) { if (dst->empty()) { for (int32_t format = 0; format != IClipboard::kNumFormats; ++format) { - IClipboard::EFormat eFormat = (IClipboard::EFormat)format; + auto eFormat = (IClipboard::EFormat)format; if (src->has(eFormat)) { dst->add(eFormat, src->get(eFormat)); } @@ -133,7 +133,7 @@ bool IClipboard::copy(IClipboard *dst, const IClipboard *src, Time time) uint32_t IClipboard::readUInt32(const char *buf) { - const unsigned char *ubuf = reinterpret_cast(buf); + const auto *ubuf = reinterpret_cast(buf); return (static_cast(ubuf[0]) << 24) | (static_cast(ubuf[1]) << 16) | (static_cast(ubuf[2]) << 8) | static_cast(ubuf[3]); }