fix(core): replace all std::time_t by time_t because std:: is useless (see 20.5.4.3.4 of C++17 standard)

This commit is contained in:
Ronan Abhamon 2017-11-15 16:03:45 +01:00
parent 476d0c07e5
commit a69efcb325
11 changed files with 17 additions and 17 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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
);

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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);
};

View file

@ -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;
}

View file

@ -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);