From 09188a2bc14ecaf01042a3a09c20c31cbe0841fa Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 Jul 2016 00:36:53 +0100 Subject: Revert "Try to disambiguate timespec as a struct" This reverts commit 17d2dc9477444786b3db8ea834a45abbcb88abfd. --- src/buffer.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/buffer.hh') diff --git a/src/buffer.hh b/src/buffer.hh index ea8997d4..7b04aa9d 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -45,7 +45,7 @@ constexpr Array, 2> enum_desc(ByteOrderMark) class Buffer; -constexpr struct timespec InvalidTime = { -1, -1 }; +constexpr timespec InvalidTime = { -1, -1 }; // A BufferIterator permits to iterate over the characters of a buffer class BufferIterator @@ -114,7 +114,7 @@ public: }; Buffer(String name, Flags flags, StringView data = {}, - struct timespec fs_timestamp = InvalidTime); + timespec fs_timestamp = InvalidTime); Buffer(const Buffer&) = delete; Buffer& operator= (const Buffer&) = delete; ~Buffer(); @@ -130,8 +130,8 @@ public: ByteCoord replace(ByteCoord begin, ByteCoord end, StringView content); size_t timestamp() const; - struct timespec fs_timestamp() const; - void set_fs_timestamp(struct timespec ts); + timespec fs_timestamp() const; + void set_fs_timestamp(timespec ts); void commit_undo_group(); bool undo(size_t count = 1) noexcept; @@ -191,7 +191,7 @@ public: void run_hook_in_own_context(StringView hook_name, StringView param); - void reload(StringView data, struct timespec fs_timestamp = InvalidTime); + void reload(StringView data, timespec fs_timestamp = InvalidTime); void check_invariant() const; @@ -271,7 +271,7 @@ private: Vector m_changes; - struct timespec m_fs_timestamp; + timespec m_fs_timestamp; // Values are just data holding by the buffer, they are not part of its // observable state -- cgit v1.2.3