diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:05:23 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:05:23 +0000 |
commit | c58acb7ccd71fc725e7c34545601df3e9b29cd53 (patch) | |
tree | c0f651efefb7f1cbedab8ba19f5acb5538355497 /stoc/source/security | |
parent | 59afebca3709a105ad5cb75ce0bfc286a8b18ac3 (diff) |
INTEGRATION: CWS warnings01 (1.4.34); FILE MERGED
2005/09/22 19:56:50 sb 1.4.34.2: RESYNC: (1.4-1.5); FILE MERGED
2005/09/19 15:23:59 sb 1.4.34.1: #i53898# Made code warning-free.
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/file_policy.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 0d12cd543c5f..587a81907fde 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -4,9 +4,9 @@ * * $RCSfile: file_policy.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-08 08:09:39 $ + * last change: $Author: hr $ $Date: 2006-06-20 00:05:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -440,8 +440,9 @@ PolicyReader::PolicyReader( OUString const & fileName, AccessControl & ac ) PolicyReader::~PolicyReader() SAL_THROW( () ) { - oslFileError rc = ::osl_closeFile( m_file ); - OSL_ASSERT( osl_File_E_None == rc ); + if ( ::osl_closeFile( m_file ) != osl_File_E_None ) { + OSL_ASSERT( false ); + } } static OUString s_grant = OUSTR("grant"); |