From 868d8c8f0fdf376b0a3eb545ee841c9c12ffee3b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Jul 2017 08:42:54 +0200 Subject: loplugin:unnecessaryparen handle parens inside call expr stick to single-arg function calls, sometimes parens in multi-arg calls might be there for clarity Change-Id: Ib80190c571ce65b5d219a88056687042de749e74 Reviewed-on: https://gerrit.libreoffice.org/39676 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sal/osl/unx/socket.cxx | 2 +- sal/rtl/locale.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index 973c1d68699e..2b5467091460 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -1306,7 +1306,7 @@ oslSocket SAL_CALL osl_createSocket(oslAddrFamily Family, int nErrno = errno; SAL_WARN( "sal.osl", "socket creation failed: (" << nErrno << ") " << strerror(nErrno) ); - destroySocketImpl((pSocket)); + destroySocketImpl(pSocket); pSocket= nullptr; } else diff --git a/sal/rtl/locale.cxx b/sal/rtl/locale.cxx index 751c23c5a941..ec8a8232ea8a 100644 --- a/sal/rtl/locale.cxx +++ b/sal/rtl/locale.cxx @@ -167,7 +167,7 @@ sal_Bool rtl_hashtable_grow(RTL_HASHTABLE** table) } rtl_freeMemory((*table)->Table); - rtl_freeMemory((*table)); + rtl_freeMemory(*table); (*table) = pNewTable; return true; -- cgit