diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-20 18:35:39 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-20 18:35:39 +0000 |
commit | 0838820f8d6e5d78dad53e4aa97bc084686955f0 (patch) | |
tree | 2955e9de312df4e1735a4635a0dd8ce2f47c1f14 /sal | |
parent | INTEGRATION: CWS reportdesign01 (1.10.154); FILE MERGED (diff) | |
download | core-0838820f8d6e5d78dad53e4aa97bc084686955f0.tar.gz core-0838820f8d6e5d78dad53e4aa97bc084686955f0.zip |
INTEGRATION: CWS reportdesign01 (1.6.154); FILE MERGED
2007/10/04 09:03:57 lla 1.6.154.1: #i67655# only updates on some tests to build warning free
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/socket/osl_Socket2.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sal/qa/osl/socket/osl_Socket2.cxx b/sal/qa/osl/socket/osl_Socket2.cxx index 5a7837a5641b..239fb171febc 100644 --- a/sal/qa/osl/socket/osl_Socket2.cxx +++ b/sal/qa/osl/socket/osl_Socket2.cxx @@ -4,9 +4,9 @@ * * $RCSfile: osl_Socket2.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2006-09-17 08:53:29 $ + * last change: $Author: ihi $ $Date: 2007-11-20 19:35:39 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -186,7 +186,7 @@ namespace osl_Socket void ctors_none() { /// Socket constructor. - ::osl::Socket sSocket(); + // ::osl::Socket sSocket(); CPPUNIT_ASSERT_MESSAGE( "test for ctors_none constructor function: check if the socket was created successfully, if no exception occured", 1 == 1 ); @@ -530,7 +530,8 @@ namespace osl_Socket ::rtl::OUString suError = outputError(::rtl::OUString::valueOf(sSocket.getLocalPort( )), ::rtl::OUString::valueOf((sal_Int32)OSL_INVALID_PORT), "test for getLocalPort function: first create a new socket, then an invalid socket address, bind them, and check the port assigned."); - bOK = ( OSL_INVALID_PORT == sSocket.getLocalPort( ) ); + sal_Bool bOK = ( OSL_INVALID_PORT == sSocket.getLocalPort( ) ); + (void)bOK; #else //on Unix, if Addr is not an address of type osl_Socket_FamilyInet, it returns OSL_INVALID_PORT ::rtl::OUString suError = ::rtl::OUString::createFromAscii( "on Unix, if Addr is not an address of type osl_Socket_FamilyInet, it returns OSL_INVALID_PORT, but can not create Addr of that case"); |