diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2002-03-05 14:48:17 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2002-03-05 14:48:17 +0000 |
commit | b009cc759c8f6996ace3908e2b389ddf7682fc3e (patch) | |
tree | 3ff2365f2a348f25e2da478694d2042e16d2ccff /stoc/source/security | |
parent | 1ca95ff137e4e0836081b878ff014998cbcfd38e (diff) |
#88919# removed static strings
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/permissions.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 3a652f7f3740..a3ddc227de05 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -2,9 +2,9 @@ * * $RCSfile: permissions.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2002-03-05 12:21:00 $ + * last change: $Author: dbo $ $Date: 2002-03-05 15:48:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -89,15 +89,6 @@ using ::rtl::OUStringBuffer; namespace stoc_sec { -// static stuff initialized when loading lib -static OUString s_filePermission = OUSTR("com.sun.star.io.FilePermission"); -static OUString s_socketPermission = OUSTR("com.sun.star.connection,SocketPermission"); -static OUString s_runtimePermission = OUSTR("com.sun.star.security.RuntimePermission"); -static OUString s_allPermission = OUSTR("com.sun.star.security.AllPermission"); -static OUString s_allFiles = OUSTR("<<ALL FILES>>"); - -//################################################################################################## - //-------------------------------------------------------------------------------------------------- static inline sal_Int32 makeMask( OUString const & items, char const * const * strings ) SAL_THROW( () ) @@ -370,7 +361,7 @@ FilePermission::FilePermission( : Permission( FILE, next ) , m_actions( makeMask( perm.Actions, s_actions ) ) , m_url( perm.URL ) - , m_allFiles( sal_False != perm.URL.equals( s_allFiles ) ) + , m_allFiles( sal_False != perm.URL.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("<<ALL FILES>>")) ) { if (! m_allFiles) { |