diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 13:29:56 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 13:29:56 +0000 |
commit | 2055361fd60c2918df293ffccabed14e400ea956 (patch) | |
tree | f0d68fe8f8412c108bed65b07650c648c6ecf845 /cosv | |
parent | 8ad8106d36ef1086be3f8d959a7561b4ca5cfe38 (diff) |
INTEGRATION: CWS warnings01 (1.2.120); FILE MERGED
2005/11/07 12:03:07 sb 1.2.120.3: #i53898# Made code warning-free (GCC 4.0.1).
2005/09/22 22:09:53 sb 1.2.120.2: RESYNC: (1.2-1.3); FILE MERGED
2005/08/30 13:13:55 sb 1.2.120.1: #i53898# Made code warning-free.
Diffstat (limited to 'cosv')
-rw-r--r-- | cosv/inc/cosv/openclose.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cosv/inc/cosv/openclose.hxx b/cosv/inc/cosv/openclose.hxx index 2f905f5aaff7..006cbdd7daa7 100644 --- a/cosv/inc/cosv/openclose.hxx +++ b/cosv/inc/cosv/openclose.hxx @@ -4,9 +4,9 @@ * * $RCSfile: openclose.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-08 07:55:43 $ + * last change: $Author: hr $ $Date: 2006-06-19 14:29:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -66,14 +66,19 @@ enum E_ShareMode These combinations are the only ones, guaranteed to be supported. */ const UINT32 CFM_RW = rwReadWrite; -const UINT32 CFM_CREATE = rwReadWrite | omCreate; -const UINT32 CFM_READ = rwRead | omCreateNot | shmShareRead; +const UINT32 CFM_CREATE = + static_cast< UINT32 >(rwReadWrite) | static_cast< UINT32 >(omCreate); +const UINT32 CFM_READ = + static_cast< UINT32 >(rwRead) | static_cast< UINT32 >(omCreateNot) | + static_cast< UINT32 >(shmShareRead); class OpenClose { public: + virtual ~OpenClose() {} + bool open( UINT32 in_nOpenModeInfo = 0 ); /// Combination of values of E_RWMode and E_ShareMode und E_OpenMode. 0 := Keep existing mode. void close(); |