]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
threadengine_pthread Throw CoreExceptions instead of CoreException pointers
authorAttila Molnar <attilamolnar@hush.com>
Mon, 2 Feb 2015 22:39:40 +0000 (23:39 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 2 Feb 2015 22:39:40 +0000 (23:39 +0100)
src/threadengines/threadengine_pthread.cpp

index e16e401f3387927773777c952e18617ce69f2aa1..40205da3118533479382f8f7f8dba2b5e182ffe1 100644 (file)
@@ -109,7 +109,7 @@ SocketThread::SocketThread()
        signal.sock = NULL;
        int fd = eventfd(0, EFD_NONBLOCK);
        if (fd < 0)
-               throw new CoreException("Could not create pipe " + std::string(strerror(errno)));
+               throw CoreException("Could not create pipe " + std::string(strerror(errno)));
        signal.sock = new ThreadSignalSocket(this, fd);
 }
 #else
@@ -160,7 +160,7 @@ SocketThread::SocketThread()
        signal.sock = NULL;
        int fds[2];
        if (pipe(fds))
-               throw new CoreException("Could not create pipe " + std::string(strerror(errno)));
+               throw CoreException("Could not create pipe " + std::string(strerror(errno)));
        signal.sock = new ThreadSignalSocket(this, fds[0], fds[1]);
 }
 #endif