code style
This commit is contained in:
@@ -129,9 +129,9 @@ result_t TemParamDataType::writeSymbols(istringstream& input,
|
||||
return RESULT_ERR_OUT_OF_RANGE; // value out of range
|
||||
}
|
||||
if (isMaster) {
|
||||
value = grp | (num<<8); // grp in bits 0...5, num in bits 8...13
|
||||
value = grp | (num << 8); // grp in bits 0...5, num in bits 8...13
|
||||
} else {
|
||||
value = (grp<<7) | num; // grp in bits 7...11, num in bits 0...6
|
||||
value = (grp << 7) | num; // grp in bits 7...11, num in bits 0...6
|
||||
}
|
||||
}
|
||||
if (value < getMinValue() || value > getMaxValue()) {
|
||||
|
||||
@@ -46,7 +46,7 @@ class TemParamDataType : public NumberDataType {
|
||||
* Constructs a new instance.
|
||||
* @param id the type identifier.
|
||||
*/
|
||||
TemParamDataType(const string id)
|
||||
explicit TemParamDataType(const string id)
|
||||
: NumberDataType(id, 16, 0, 0xffff, 0, 0xffff, 0) {}
|
||||
|
||||
// @copydoc
|
||||
|
||||
Reference in New Issue
Block a user