fix some style problems detected by cppcheck

This commit is contained in:
Maxime Coste 2013-03-25 18:44:52 +01:00
parent 7ee3929382
commit dfa5318765
2 changed files with 2 additions and 3 deletions

View File

@ -517,7 +517,7 @@ public:
m_context.options().unregister_watcher(*this);
}
BufferCompleter(const BufferCompleter&) = delete;
BufferCompleter operator=(const BufferCompleter&) = delete;
BufferCompleter& operator=(const BufferCompleter&) = delete;
void select(int offset)
{

View File

@ -459,9 +459,8 @@ private:
};
Server::Server()
: m_filename{"/tmp/kak-" + int_to_str(getpid())}
{
m_filename = "/tmp/kak-" + int_to_str(getpid());
int listen_sock = socket(AF_UNIX, SOCK_STREAM, 0);
fcntl(listen_sock, F_SETFD, FD_CLOEXEC);
sockaddr_un addr;