aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-25 21:38:57 +0200
committerMontel Laurent <[email protected]>2015-08-25 21:38:57 +0200
commite3cf4e7b26b2ad062b373dec80b7e9804195a20e (patch)
treea144cd1a23a9dd23831e79e963f16287dfc35550
parent24cf770e9dd6a7ba924dcb7b6ef54d1baef82174 (diff)
Fix warning (I don't know why it's not a boolean)
-rw-r--r--src/blockalarmsattribute.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/blockalarmsattribute.cpp b/src/blockalarmsattribute.cpp
index dc4eedf..92b001b 100644
--- a/src/blockalarmsattribute.cpp
+++ b/src/blockalarmsattribute.cpp
@@ -39,10 +39,10 @@ public:
{
}
- int audio : 1;
- int display : 1;
- int email : 1;
- int procedure : 1;
+ int audio;
+ int display;
+ int email;
+ int procedure;
};
BlockAlarmsAttribute::BlockAlarmsAttribute()
@@ -138,10 +138,10 @@ void BlockAlarmsAttribute::deserialize(const QByteArray &data)
{
// Pre-4.11, default behavior
if (data.isEmpty()) {
- d->audio = true;
- d->display = true;
- d->email = true;
- d->procedure = true;
+ d->audio = 1;
+ d->display = 1;
+ d->email = 1;
+ d->procedure = 1;
} else {
QByteArray ba = data;
QDataStream stream(&ba, QIODevice::ReadOnly);