From ade9a5f7d3f55c202ea607271f4a7ebee03bfd90 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Thu, 12 Oct 2006 09:55:43 +0000 Subject: [PATCH] INTEGRATION: CWS sb59 (1.2.100); FILE MERGED 2006/08/10 12:04:54 sb 1.2.100.1: #i67487# Made code warning-free (wntmsci10). --- fpicker/source/win32/misc/AutoBuffer.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fpicker/source/win32/misc/AutoBuffer.cxx b/fpicker/source/win32/misc/AutoBuffer.cxx index d2f8a34f580b..cf1b25ff2fb8 100644 --- a/fpicker/source/win32/misc/AutoBuffer.cxx +++ b/fpicker/source/win32/misc/AutoBuffer.cxx @@ -4,9 +4,9 @@ * * $RCSfile: AutoBuffer.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: obo $ $Date: 2006-09-16 17:59:06 $ + * last change: $Author: obo $ $Date: 2006-10-12 10:55:43 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -48,7 +48,13 @@ #include #endif +#if defined _MSC_VER +#pragma warning(push, 1) +#endif #include +#if defined _MSC_VER +#pragma warning(pop) +#endif //------------------------------------------------------------------------ // namespace directives @@ -83,8 +89,6 @@ CAutoUnicodeBuffer::~CAutoUnicodeBuffer( ) sal_Bool SAL_CALL CAutoUnicodeBuffer::resize( size_t new_size ) { - OSL_ASSERT( new_size >= 0 ); - if ( new_size != m_buffSize ) { if ( new_size > m_buffSize )