Skip to content

Commit b3c4ea9

Browse files
committed
fix: compile errors
1 parent 89b9872 commit b3c4ea9

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/utils.cc

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -340,27 +340,27 @@ void populateValueId(v8::Local<v8::Object> &nodeobj, OpenZWave::ValueID value)
340340
AddIntegerProp(nodeobj, instance, value.GetInstance());
341341
AddIntegerProp(nodeobj, index, value.GetIndex());
342342

343-
::std::string help, label, units;
344-
bool read_only, write_only, is_polled;
345-
int32 min, max
346-
347-
OZWManagerAssign(label, GetValueLabel, value);
348-
OZWManagerAssign(units, GetValueUnits, value);
349-
OZWManagerAssign(help, GetValueHelp, value);
350-
OZWManagerAssign(read_only, IsValueReadOnly, value);
351-
OZWManagerAssign(write_only, IsValueWriteOnly, value);
352-
OZWManagerAssign(min, GetValueMin, value);
353-
OZWManagerAssign(max, GetValueMax, value);
354-
OZWManagerAssign(is_polled, IsValuePolled, value);
355-
356-
AddStringProp(nodeobj, label, label);
357-
AddStringProp(nodeobj, units, units);
358-
AddStringProp(nodeobj, help, help);
359-
AddBooleanProp(nodeobj, read_only, read_only);
360-
AddBooleanProp(nodeobj, write_only, write_only);
361-
AddIntegerProp(nodeobj, min, min);
362-
AddIntegerProp(nodeobj, max, max);
363-
AddBooleanProp(nodeobj, is_polled, is_polled);
343+
::std::string helpVal, labelVal, unitsVal;
344+
bool read_onlyVal = false, write_onlyVal = false, is_polledVal = false;
345+
int32 minVal = 0, maxVal = 0;
346+
347+
OZWManagerAssign(labelVal, GetValueLabel, value);
348+
OZWManagerAssign(unitsVal, GetValueUnits, value);
349+
OZWManagerAssign(helpVal, GetValueHelp, value);
350+
OZWManagerAssign(read_onlyVal, IsValueReadOnly, value);
351+
OZWManagerAssign(write_onlyVal, IsValueWriteOnly, value);
352+
OZWManagerAssign(minVal, GetValueMin, value);
353+
OZWManagerAssign(maxVal, GetValueMax, value);
354+
OZWManagerAssign(is_polledVal, IsValuePolled, value);
355+
356+
AddStringProp(nodeobj, label, labelVal);
357+
AddStringProp(nodeobj, units, unitsVal);
358+
AddStringProp(nodeobj, help, helpVal);
359+
AddBooleanProp(nodeobj, read_only, read_onlyVal);
360+
AddBooleanProp(nodeobj, write_only, write_onlyVal);
361+
AddIntegerProp(nodeobj, min, minVal);
362+
AddIntegerProp(nodeobj, max, maxVal);
363+
AddBooleanProp(nodeobj, is_polled, is_polledVal);
364364
}
365365

366366
// create a V8 object from a OpenZWave::ValueID

0 commit comments

Comments
 (0)