[Libreoffice-commits] core.git: include/osl

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jul 27 06:26:30 UTC 2018


 include/osl/pipe.hxx        |    5 -----
 include/osl/pipe_decl.hxx   |    5 -----
 include/osl/socket.hxx      |    5 -----
 include/osl/socket_decl.hxx |    2 --
 4 files changed, 17 deletions(-)

New commits:
commit 739f746254853dbf6552b0fac9192bfd5ddd0118
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 14:00:34 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jul 27 08:26:07 2018 +0200

    sal: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
    
    ...by removing explicitly user-provided functions that do the same as their
    implicitly-defined counterparts, but may prevent implicitly declared copy
    functions from being defined as non-deleted in the future
    
    Change-Id: I4da623b67ef1792f9dd04382dcb0e772d66bdb40
    Reviewed-on: https://gerrit.libreoffice.org/58104
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/osl/pipe.hxx b/include/osl/pipe.hxx
index 40362de287a7..e9cfe2e6c3f0 100644
--- a/include/osl/pipe.hxx
+++ b/include/osl/pipe.hxx
@@ -186,11 +186,6 @@ namespace osl
         : Pipe( strName, Options )
     {}
 
-
-    inline StreamPipe::StreamPipe(const StreamPipe& aPipe)
-        : Pipe( aPipe )
-    {}
-
     inline StreamPipe::StreamPipe( oslPipe pipe, __sal_NoAcquire noacquire )
         : Pipe( pipe , noacquire )
     {}
diff --git a/include/osl/pipe_decl.hxx b/include/osl/pipe_decl.hxx
index 81bc4fd81183..146b77a5624e 100644
--- a/include/osl/pipe_decl.hxx
+++ b/include/osl/pipe_decl.hxx
@@ -160,11 +160,6 @@ public:
     */
     inline StreamPipe(oslPipe Pipe);
 
-    /** Copy constructor.
-        @param Pipe
-    */
-    inline StreamPipe(const StreamPipe& Pipe);
-
     /** Creates a pipe.
 
         @param[in] strName Pipe name
diff --git a/include/osl/socket.hxx b/include/osl/socket.hxx
index 78bb4b1c3768..0227095df089 100644
--- a/include/osl/socket.hxx
+++ b/include/osl/socket.hxx
@@ -433,11 +433,6 @@ namespace osl
     {}
 
 
-    inline StreamSocket::StreamSocket( const StreamSocket & socket )
-        : Socket( socket )
-    {}
-
-
     inline sal_Int32 StreamSocket::read(void* pBuffer, sal_uInt32 n)
     {
         return osl_readSocket( m_handle, pBuffer, n );
diff --git a/include/osl/socket_decl.hxx b/include/osl/socket_decl.hxx
index ebf831dfb0e4..3d2a05634348 100644
--- a/include/osl/socket_decl.hxx
+++ b/include/osl/socket_decl.hxx
@@ -538,8 +538,6 @@ namespace osl
                             oslProtocol Protocol = osl_Socket_ProtocolIp,
                             oslSocketType   Type = osl_Socket_TypeStream);
 
-        inline StreamSocket( const StreamSocket & );
-
         inline StreamSocket( oslSocket Socket , __sal_NoAcquire noacquire );
 
         inline StreamSocket( oslSocket Socket );


More information about the Libreoffice-commits mailing list