diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/source/lockbyte.cxx | 16 | ||||
-rw-r--r-- | store/source/storbios.cxx | 4 | ||||
-rw-r--r-- | store/source/store.cxx | 6 |
3 files changed, 26 insertions, 0 deletions
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx index dfc7ad920a99..139857440dfb 100644 --- a/store/source/lockbyte.cxx +++ b/store/source/lockbyte.cxx @@ -143,6 +143,8 @@ storeError ILockBytes::flush() namespace store { +namespace { + struct FileHandle { oslFileHandle m_handle; @@ -315,6 +317,8 @@ protected: virtual ~FileLockBytes() override; }; +} + } // namespace store FileLockBytes::FileLockBytes (FileHandle const & rFile) @@ -442,6 +446,8 @@ storeError FileLockBytes::flush_Impl() namespace store { +namespace { + struct FileMapping { sal_uInt8 * m_pAddr; @@ -543,6 +549,8 @@ protected: virtual ~MappedLockBytes() override; }; +} + } // namespace store MappedLockBytes::MappedLockBytes (FileMapping const & rMapping) @@ -641,6 +649,8 @@ storeError MappedLockBytes::flush_Impl() namespace store { +namespace { + class MemoryLockBytes : public store::OStoreObject, public store::ILockBytes @@ -680,6 +690,8 @@ protected: virtual ~MemoryLockBytes() override; }; +} + } // namespace store MemoryLockBytes::MemoryLockBytes() @@ -804,6 +816,8 @@ storeError MemoryLockBytes::flush_Impl() namespace store { +namespace { + template< class T > struct ResourceHolder { typedef typename T::destructor_type destructor_type; @@ -838,6 +852,8 @@ template< class T > struct ResourceHolder } }; +} + storeError FileLockBytes_createInstance ( rtl::Reference< ILockBytes > & rxLockBytes, diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx index 93e47d700841..a98f4e9a35a3 100644 --- a/store/source/storbios.cxx +++ b/store/source/storbios.cxx @@ -43,6 +43,8 @@ using namespace store; *======================================================================*/ #define STORE_MAGIC_SUPERBLOCK sal_uInt32(0x484D5343) +namespace { + struct OStoreSuperBlock { typedef OStorePageGuard G; @@ -139,6 +141,8 @@ struct OStoreSuperBlock } }; +} + /*======================================================================== * * SuperBlockPage interface. diff --git a/store/source/store.cxx b/store/source/store.cxx index 2f2b4bed4763..dfd41571e2dd 100644 --- a/store/source/store.cxx +++ b/store/source/store.cxx @@ -35,6 +35,9 @@ using rtl::Reference; namespace store { + +namespace { + /** Template helper class as type safe Reference to store_handle_type. */ template<class store_handle_type> @@ -52,6 +55,9 @@ public: static_cast<store_handle_type*>(0)); } }; + +} + } using namespace store; |