summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:01:08 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:01:08 +0000
commit6aff713db756c2e011d8478c13fe2ef9dc2e8cea (patch)
tree6d72b4dcdebd084d4eb4b65a8449f9c3ed7304cf /stoc
parentafb1584b9c51318bbe679ca0241957b6368f98e6 (diff)
INTEGRATION: CWS sb76 (1.7.46); FILE MERGED
2007/08/31 11:01:54 sb 1.7.46.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/security/file_policy.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index b0c027ae2..b4336791f 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.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 17:36:04 $
+ * last change: $Author: hr $ $Date: 2007-09-27 13:01:08 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -67,16 +67,15 @@ using namespace ::cppu;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
+extern ::rtl_StandardModuleCount g_moduleCount;
+
namespace stoc_sec
{
-
// static stuff initialized when loading lib
static OUString s_implName = OUSTR(IMPL_NAME);
static OUString s_serviceName = OUSTR(SERVICE_NAME);
static Sequence< OUString > s_serviceNames = Sequence< OUString >( &s_serviceName, 1 );
-extern ::rtl_StandardModuleCount s_moduleCount;
-
//##################################################################################################
//--------------------------------------------------------------------------------------------------
@@ -145,13 +144,13 @@ FilePolicy::FilePolicy( Reference< XComponentContext > const & xComponentContext
, m_ac( xComponentContext )
, m_init( false )
{
- s_moduleCount.modCnt.acquire( &s_moduleCount.modCnt );
+ g_moduleCount.modCnt.acquire( &g_moduleCount.modCnt );
}
//__________________________________________________________________________________________________
FilePolicy::~FilePolicy()
SAL_THROW( () )
{
- s_moduleCount.modCnt.release( &s_moduleCount.modCnt );
+ g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
//__________________________________________________________________________________________________
void FilePolicy::disposing()
@@ -589,25 +588,25 @@ Sequence< OUString > FilePolicy::getSupportedServiceNames()
{
return s_serviceNames;
}
-
+}
//##################################################################################################
-
+namespace stoc_bootstrap
+{
//--------------------------------------------------------------------------------------------------
Reference< XInterface > SAL_CALL filepolicy_create(
Reference< XComponentContext > const & xComponentContext )
SAL_THROW( (Exception) )
{
- return (OWeakObject *)new FilePolicy( xComponentContext );
+ return (OWeakObject *)new stoc_sec::FilePolicy( xComponentContext );
}
//--------------------------------------------------------------------------------------------------
Sequence< OUString > filepolicy_getSupportedServiceNames() SAL_THROW( () )
{
- return s_serviceNames;
+ return stoc_sec::s_serviceNames;
}
//--------------------------------------------------------------------------------------------------
OUString filepolicy_getImplementationName() SAL_THROW( () )
{
- return s_implName;
+ return stoc_sec::s_implName;
}
-
}