blob: 3035e1e5b931ea09d6d1a07e1bc05808017ed3d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- lcdapi/sensors/LCDSensor.h.orig 2022-02-05 21:39:20 UTC
+++ lcdapi/sensors/LCDSensor.h
@@ -53,12 +53,12 @@ class LCDWidgetTimeOut {
LCDWidgetTimeOut()
: _widgetId(), _timeOut(0), _widget(NULL),
- _thread(static_cast<pthread_t>(-1))
+ _thread(nullptr)
{
}
bool isValid() {
- return (_thread != static_cast<pthread_t>(-1));
+ return (_thread != nullptr);
}
const LCDWidgetTimeOut& operator=(const LCDWidgetTimeOut& rhs) {
|