diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 20:42:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 07:47:23 -0600 |
commit | 35e44118b8e55b2263bd10e8b11d9ac4e043228b (patch) | |
tree | 499003287173fc32dae7fda54324bf2fc4414c36 /stoc/source/security | |
parent | Remove visual noise from svgio (diff) | |
download | core-35e44118b8e55b2263bd10e8b11d9ac4e043228b.tar.gz core-35e44118b8e55b2263bd10e8b11d9ac4e043228b.zip |
Remove visual noise from stoc
Change-Id: I19edfb2796298c4870124d0d1e9488974a010bb8
Reviewed-on: https://gerrit.libreoffice.org/8316
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/access_controller.cxx | 10 | ||||
-rw-r--r-- | stoc/source/security/file_policy.cxx | 4 | ||||
-rw-r--r-- | stoc/source/security/lru_cache.h | 18 | ||||
-rw-r--r-- | stoc/source/security/permissions.cxx | 18 | ||||
-rw-r--r-- | stoc/source/security/permissions.h | 6 |
5 files changed, 28 insertions, 28 deletions
diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 92ca750b1fa1..f0807942a96a 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -67,7 +67,7 @@ namespace { static OUString s_envType = CPPU_CURRENT_LANGUAGE_BINDING_NAME; const char s_acRestriction[] = "access-control.restriction"; -//################################################################################################## + /** ac context intersects permissions of two ac contexts */ @@ -308,7 +308,7 @@ Any acc_CurrentContext::getValueByName( OUString const & name ) } } -//################################################################################################## + static inline Reference< security::XAccessControlContext > getDynamicRestriction( Reference< XCurrentContext > const & xContext ) @@ -336,7 +336,7 @@ static inline Reference< security::XAccessControlContext > getDynamicRestriction } return Reference< security::XAccessControlContext >(); } -//================================================================================================== + class cc_reset { void * m_cc; @@ -347,7 +347,7 @@ public: { ::uno_setCurrentContext( m_cc, s_envType.pData, 0 ); } }; -//################################################################################################## + struct MutexHolder { @@ -356,7 +356,7 @@ struct MutexHolder typedef WeakComponentImplHelper3< security::XAccessController, lang::XServiceInfo, lang::XInitialization > t_helper; -//================================================================================================== + class AccessController : public MutexHolder , public t_helper diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index d5bc3c966880..47945a3bcd19 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -54,7 +54,7 @@ struct MutexHolder }; typedef WeakComponentImplHelper2< security::XPolicy, lang::XServiceInfo > t_helper; -//================================================================================================== + class FilePolicy : public MutexHolder , public t_helper @@ -149,7 +149,7 @@ Sequence< Any > FilePolicy::getDefaultPermissions() return m_defaultPermissions; } -//================================================================================================== + class PolicyReader { OUString m_fileName; diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h index be081b761074..5033113b1744 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -99,7 +99,7 @@ public: */ inline void setSize( ::std::size_t size ) SAL_THROW(()); }; -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::setSize( ::std::size_t size ) SAL_THROW(()) @@ -121,7 +121,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::setSize( } } } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache( ::std::size_t size ) SAL_THROW(()) @@ -130,21 +130,21 @@ inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache( { setSize( size ); } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache() SAL_THROW(()) : m_size( 0 ) , m_block( 0 ) { } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::~lru_cache() SAL_THROW(()) { delete [] m_block; } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::toFront( Entry * entry ) const SAL_THROW(()) @@ -167,7 +167,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::toFront( m_head = entry; } } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline bool lru_cache< t_key, t_val, t_hashKey, t_equalKey >::has( t_key const & key ) const SAL_THROW(()) @@ -175,7 +175,7 @@ inline bool lru_cache< t_key, t_val, t_hashKey, t_equalKey >::has( typename t_key2element::const_iterator const iFind( m_key2element.find( key ) ); return (iFind != m_key2element.end()); } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline t_val const * lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lookup( t_key const & key ) const SAL_THROW(()) @@ -201,7 +201,7 @@ inline t_val const * lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lookup( } return 0; } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( t_key const & key, t_val const & val ) SAL_THROW(()) @@ -252,7 +252,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( toFront( entry ); } } -//__________________________________________________________________________________________________ + template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::clear() SAL_THROW(()) { diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 0e6060619fbf..233c56eaa82e 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -100,9 +100,9 @@ static inline OUString makeStrings( return buf.makeStringAndClear(); } -//################################################################################################## -//================================================================================================== + + class SocketPermission : public Permission { static char const * s_actions []; @@ -271,9 +271,9 @@ OUString SocketPermission::toString() const SAL_THROW(()) return buf.makeStringAndClear(); } -//################################################################################################## -//================================================================================================== + + class FilePermission : public Permission { static char const * s_actions []; @@ -428,9 +428,9 @@ OUString FilePermission::toString() const SAL_THROW(()) return buf.makeStringAndClear(); } -//################################################################################################## -//================================================================================================== + + class RuntimePermission : public Permission { OUString m_name; @@ -467,7 +467,7 @@ OUString RuntimePermission::toString() const SAL_THROW(()) return buf.makeStringAndClear(); } -//################################################################################################## + bool AllPermission::implies( Permission const & ) const SAL_THROW(()) @@ -480,7 +480,7 @@ OUString AllPermission::toString() const SAL_THROW(()) return OUString("com.sun.star.security.AllPermission"); } -//################################################################################################## + PermissionCollection::PermissionCollection( @@ -576,7 +576,7 @@ static void throwAccessControlException( throw security::AccessControlException( buf.makeStringAndClear(), Reference< XInterface >(), demanded_perm ); } -//================================================================================================== + void PermissionCollection::checkPermission( Any const & perm ) const SAL_THROW( (RuntimeException) ) { diff --git a/stoc/source/security/permissions.h b/stoc/source/security/permissions.h index 66598960cd03..4a1e96c84e73 100644 --- a/stoc/source/security/permissions.h +++ b/stoc/source/security/permissions.h @@ -29,7 +29,7 @@ namespace stoc_sec { -//================================================================================================== + class Permission : public ::salhelper::SimpleReferenceObject { public: @@ -48,7 +48,7 @@ public: virtual bool implies( Permission const & perm ) const SAL_THROW(()) = 0; virtual OUString toString() const SAL_THROW(()) = 0; }; -//================================================================================================== + class AllPermission : public Permission { public: @@ -62,7 +62,7 @@ public: virtual OUString toString() const SAL_THROW(()); }; -//================================================================================================== + class PermissionCollection { ::rtl::Reference< Permission > m_head; |