diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-03-16 23:08:10 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-03-16 23:34:02 +0000 |
| commit | e44f95820ee182460bee2e7569ab4ecb1d444112 (patch) | |
| tree | eaf60c648066fef5b57512dc6ccc47d8095717e4 /src/remote.cc | |
| parent | 5f7464d90d0bfe641dd2c7bbbca6e78d92d9d818 (diff) | |
Fixes some clang-tidy warning and add a few missing meta.hh include
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.cc b/src/remote.cc index 4f9a9ca5..721c4759 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -195,7 +195,7 @@ public: { T object; alignas(T) char data[sizeof(T)]; - U() {}; + U() {} ~U() { object.~T(); } } u; read(u.data, sizeof(T)); @@ -359,7 +359,7 @@ private: static bool send_data(int fd, RemoteBuffer& buffer) { - while (buffer.size() > 0 and fd_writable(fd)) + while (not buffer.empty() and fd_writable(fd)) { int res = ::write(fd, buffer.data(), buffer.size()); if (res <= 0) |
