Use C++ casting instead of C casting according to Google style guidelines "readability/casting"
This commit is contained in:
parent
2fc9d470dd
commit
5d2e3f33c8
12 changed files with 28 additions and 28 deletions
|
@ -38,7 +38,7 @@ std::string ProtocolFineoffset::decodeData(const ControllerMessage &dataMsg) {
|
|||
retString << "class:sensor;protocol:fineoffset;id:" << id << ";model:";
|
||||
|
||||
if (humidity <= 100) {
|
||||
retString << "temperaturehumidity;humidity:" << (int)humidity << ";";
|
||||
retString << "temperaturehumidity;humidity:" << static_cast<int>(humidity) << ";";
|
||||
} else if (humidity == 0xFF) {
|
||||
retString << "temperature;";
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue