summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:10:38 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:10:38 +0000
commiteff54693a0e8d5b27335f9b288d87d8539c7e156 (patch)
treeb0d0ee116bfe9e6e3ee4302bce2403835f87ddef /unotools
parenta396940a874a27e2571167bf6495652f49dd2b24 (diff)
INTEGRATION: CWS warnings01 (1.16.16); FILE MERGED
2006/05/23 18:05:59 sb 1.16.16.3: RESYNC: (1.16-1.17); FILE MERGED 2005/12/21 11:32:05 fs 1.16.16.2: #i55991# warning-free code 2005/10/27 10:51:19 pl 1.16.16.1: #i55991# removed warnings for solaris platform
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/ucbstreamhelper.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx
index 7c49d3969133..82740e214cd3 100644
--- a/unotools/source/ucbhelper/ucbstreamhelper.cxx
+++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ucbstreamhelper.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: kz $ $Date: 2006-04-26 14:24:28 $
+ * last change: $Author: hr $ $Date: 2006-06-19 14:10:38 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -70,7 +70,7 @@ namespace utl
static SvStream* lcl_CreateStream( const String& rFileName, StreamMode eOpenMode,
Reference < XInteractionHandler > xInteractionHandler,
- UcbLockBytesHandler* pHandler, sal_Bool bForceSynchron, sal_Bool bEnsureFileExists )
+ UcbLockBytesHandler* pHandler, sal_Bool /*bForceSynchron*/, sal_Bool bEnsureFileExists )
{
SvStream* pStream = NULL;
::ucb::ContentBroker* pBroker = ::ucb::ContentBroker::get();
@@ -79,7 +79,7 @@ static SvStream* lcl_CreateStream( const String& rFileName, StreamMode eOpenMode
UcbLockBytesRef xLockBytes;
if ( eOpenMode & STREAM_WRITE )
{
- sal_Bool bTruncate = ( eOpenMode & STREAM_TRUNC );
+ sal_Bool bTruncate = ( eOpenMode & STREAM_TRUNC ) != 0;
if ( bTruncate )
{
try
@@ -198,7 +198,7 @@ SvStream* UcbStreamHelper::CreateStream( Reference < XInputStream > xStream )
}
return pStream;
-};
+}
SvStream* UcbStreamHelper::CreateStream( Reference < XStream > xStream )
{
@@ -217,7 +217,7 @@ SvStream* UcbStreamHelper::CreateStream( Reference < XStream > xStream )
return CreateStream( xStream->getInputStream() );
return pStream;
-};
+}
SvStream* UcbStreamHelper::CreateStream( Reference < XInputStream > xStream, sal_Bool bCloseStream )
{
@@ -258,4 +258,4 @@ SvStream* UcbStreamHelper::CreateStream( Reference < XStream > xStream, sal_Bool
return pStream;
};
-};
+}