Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[libcommhistory] Housekeeping
Mostly, compatibility with gcc 4.6
  • Loading branch information
monich committed Nov 26, 2019
1 parent 46cc427 commit e5125dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
build
Makefile*
.moc
.obj
Expand Down
2 changes: 2 additions & 0 deletions src/callstatistics.cpp
Expand Up @@ -186,6 +186,8 @@ namespace CommHistory {
CallStatisticsPrivate::CallStatisticsPrivate(CallStatistics *parent)
: QObject(parent)
, q(parent)
, callType(CallEvent::UnknownCallType)
, timeInterval(CallStatistics::NoTimeInterval)
{
}

Expand Down
3 changes: 2 additions & 1 deletion src/callstatistics.h
Expand Up @@ -27,7 +27,8 @@ class LIBCOMMHISTORY_EXPORT CallStatistics : public QObject

struct Result {
QDateTime when;
int callCount = 0;
int callCount;
Result() : callCount(0) {}
};

explicit CallStatistics(QObject *parent = 0);
Expand Down
4 changes: 2 additions & 2 deletions src/callstatistics_p.h
Expand Up @@ -12,8 +12,8 @@ class CallStatisticsPrivate: public QObject
CallStatistics *q;
QDateTime startTime;
QDateTime endTime;
CallEvent::CallType callType = CallEvent::UnknownCallType;
CallStatistics::TimeInterval timeInterval = CallStatistics::NoTimeInterval;
CallEvent::CallType callType;
CallStatistics::TimeInterval timeInterval;
};

}

0 comments on commit e5125dd

Please sign in to comment.