Commit a69efcb3 authored by Ronan's avatar Ronan

fix(core): replace all std::time_t by time_t because `std::` is useless (see...

fix(core): replace all std::time_t by time_t because `std::` is useless (see 20.5.4.3.4 of C++17 standard)
parent 476d0c07
......@@ -105,8 +105,8 @@ namespace Utils {
return object;
}
LINPHONE_PUBLIC std::tm getTimeTAsTm (std::time_t time);
LINPHONE_PUBLIC std::time_t getTmAsTimeT (const std::tm &time);
LINPHONE_PUBLIC std::tm getTimeTAsTm (time_t time);
LINPHONE_PUBLIC time_t getTmAsTimeT (const std::tm &time);
}
LINPHONE_END_NAMESPACE
......
......@@ -33,7 +33,7 @@ class ConferenceCallEventPrivate;
class LINPHONE_PUBLIC ConferenceCallEvent : public EventLog {
public:
ConferenceCallEvent (Type type, std::time_t time, const std::shared_ptr<Call> &call);
ConferenceCallEvent (Type type, time_t time, const std::shared_ptr<Call> &call);
std::shared_ptr<Call> getCall () const;
......
......@@ -33,7 +33,7 @@ class ConferenceChatMessageEventPrivate;
class LINPHONE_PUBLIC ConferenceChatMessageEvent : public ConferenceEvent {
public:
ConferenceChatMessageEvent (std::time_t time, const std::shared_ptr<ChatMessage> &chatMessage);
ConferenceChatMessageEvent (time_t time, const std::shared_ptr<ChatMessage> &chatMessage);
std::shared_ptr<ChatMessage> getChatMessage () const;
......
......@@ -31,12 +31,12 @@ class ConferenceEventPrivate;
class LINPHONE_PUBLIC ConferenceEvent : public EventLog {
public:
ConferenceEvent (Type type, std::time_t time, const Address &conferenceAddress);
ConferenceEvent (Type type, time_t time, const Address &conferenceAddress);
const Address &getConferenceAddress () const;
protected:
ConferenceEvent (ConferenceEventPrivate &p, Type type, std::time_t time, const Address &conferenceAddress);
ConferenceEvent (ConferenceEventPrivate &p, Type type, time_t time, const Address &conferenceAddress);
private:
L_DECLARE_PRIVATE(ConferenceEvent);
......
......@@ -31,7 +31,7 @@ class ConferenceNotifiedEventPrivate;
class LINPHONE_PUBLIC ConferenceNotifiedEvent : public ConferenceEvent {
public:
ConferenceNotifiedEvent (
Type type, std::time_t time,
Type type, time_t time,
const Address &conferenceAddress,
unsigned int notifiyId
);
......@@ -42,7 +42,7 @@ protected:
ConferenceNotifiedEvent (
ConferenceNotifiedEventPrivate &p,
Type type,
std::time_t time,
time_t time,
const Address &conferenceAddress,
unsigned int notifyId
);
......
......@@ -32,7 +32,7 @@ class LINPHONE_PUBLIC ConferenceParticipantDeviceEvent : public ConferencePartic
public:
ConferenceParticipantDeviceEvent (
Type type,
std::time_t time,
time_t time,
const Address &conferenceAddress,
unsigned int notifyId,
const Address &participantAddress,
......
......@@ -32,7 +32,7 @@ class LINPHONE_PUBLIC ConferenceParticipantEvent : public ConferenceNotifiedEven
public:
ConferenceParticipantEvent (
Type type,
std::time_t time,
time_t time,
const Address &conferenceAddress,
unsigned int notifyId,
const Address &participantAddress
......@@ -44,7 +44,7 @@ protected:
ConferenceParticipantEvent (
ConferenceParticipantEventPrivate &p,
Type type,
std::time_t time,
time_t time,
const Address &conferenceAddress,
unsigned int notifyId,
const Address &participantAddress
......
......@@ -33,7 +33,7 @@ class ConferenceSubjectEventPrivate;
class LINPHONE_PUBLIC ConferenceSubjectEvent : public ConferenceNotifiedEvent {
public:
ConferenceSubjectEvent (
std::time_t time,
time_t time,
const Address &conferenceAddress,
unsigned int notifyId,
const std::string &subject
......
......@@ -35,7 +35,7 @@ public:
private:
EventLog::Type type = EventLog::Type::None;
std::time_t time = -1;
time_t time = -1;
L_DECLARE_PUBLIC(EventLog);
};
......
......@@ -26,7 +26,7 @@ LINPHONE_BEGIN_NAMESPACE
EventLog::EventLog () : BaseObject(*new EventLogPrivate) {}
EventLog::EventLog (EventLogPrivate &p, Type type, std::time_t time) : BaseObject(p) {
EventLog::EventLog (EventLogPrivate &p, Type type, time_t time) : BaseObject(p) {
L_D();
d->type = type;
d->time = time;
......@@ -37,7 +37,7 @@ EventLog::Type EventLog::getType () const {
return d->type;
}
std::time_t EventLog::getTime () const {
time_t EventLog::getTime () const {
L_D();
return d->time;
}
......
......@@ -43,10 +43,10 @@ public:
EventLog ();
Type getType () const;
std::time_t getTime () const;
time_t getTime () const;
protected:
EventLog (EventLogPrivate &p, Type type, std::time_t time);
EventLog (EventLogPrivate &p, Type type, time_t time);
private:
L_DECLARE_PRIVATE(EventLog);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment