From c9253818ec8252169c20450b41878be459568d95 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 30 Jul 2017 12:16:31 +0200 Subject: loplugin:oncevar extend oncevar to any POD type Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0 Reviewed-on: https://gerrit.libreoffice.org/40564 Tested-by: Jenkins Reviewed-by: Noel Grandin --- io/source/connector/ctr_socket.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'io/source/connector/ctr_socket.cxx') diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx index 35f4e80511a7..e5908d6e41ed 100644 --- a/io/source/connector/ctr_socket.cxx +++ b/io/source/connector/ctr_socket.cxx @@ -147,9 +147,7 @@ namespace stoc_connector { } else { - OUString message("ctr_socket.cxx:SocketConnection::read: error - connection already closed"); - - IOException ioException(message, static_cast(this)); + IOException ioException("ctr_socket.cxx:SocketConnection::read: error - connection already closed", static_cast(this)); Any any; any <<= ioException; @@ -181,9 +179,7 @@ namespace stoc_connector { } else { - OUString message("ctr_socket.cxx:SocketConnection::write: error - connection already closed"); - - IOException ioException(message, static_cast(this)); + IOException ioException("ctr_socket.cxx:SocketConnection::write: error - connection already closed", static_cast(this)); Any any; any <<= ioException; -- cgit