diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-01-08 22:30:15 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-01-08 22:39:01 +0000 |
| commit | dcd8f6ef0105578e10dc18975871bc59154e008c (patch) | |
| tree | 2e0e2e11d4afcf9c351c3a7dd8c9847b253d3017 /src/remote.cc | |
| parent | 9dfd17a5bc584a66711707044bdf27ff57e7aebb (diff) | |
Apply clang-tidy modernize to the codebase
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote.cc b/src/remote.cc index 06259b67..016ba23c 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -186,7 +186,7 @@ public: { T object; alignas(T) char data[sizeof(T)]; - U() {} + U() {}; ~U() { object.~T(); } } u; read(u.data, sizeof(T)); @@ -297,7 +297,7 @@ class RemoteUI : public UserInterface { public: RemoteUI(int socket, DisplayCoord dimensions); - ~RemoteUI(); + ~RemoteUI() override; void menu_show(ConstArrayView<DisplayLine> choices, DisplayCoord anchor, Face fg, Face bg, @@ -654,7 +654,7 @@ private: auto init_cmds = m_reader.read<String>(); auto dimensions = m_reader.read<DisplayCoord>(); auto env_vars = m_reader.read_idmap<String, MemoryDomain::EnvVars>(); - RemoteUI* ui = new RemoteUI{sock, dimensions}; + auto* ui = new RemoteUI{sock, dimensions}; if (auto* client = ClientManager::instance().create_client( std::unique_ptr<UserInterface>(ui), std::move(env_vars), init_cmds, {})) |
