diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/exchange.cxx | 4 | ||||
-rw-r--r-- | sot/source/base/formats.cxx | 4 | ||||
-rw-r--r-- | sot/source/sdstor/stgio.cxx | 7 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 4 |
4 files changed, 15 insertions, 4 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index da90eef263d7..4888a366ec71 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -34,6 +34,8 @@ using namespace::com::sun::star::uno; using namespace::com::sun::star::datatransfer; +namespace { + /* * These tables contain all MimeTypes, format identifiers, and types used in * the Office. The table is sorted by the format string ID, and each ID is @@ -47,8 +49,6 @@ struct DataFlavorRepresentation const css::uno::Type* pType; }; -namespace -{ struct ImplFormatArray_Impl { const DataFlavorRepresentation* operator()() diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 51c6b157496f..f911b0b89c0c 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -49,6 +49,8 @@ using namespace ::com::sun::star::datatransfer; * it appears in the list. */ +namespace { + struct SotDestinationEntry_Impl { SotExchangeDest const nDestination; @@ -58,8 +60,6 @@ struct SotDestinationEntry_Impl const SotAction_Impl* aLinkActions; }; -namespace -{ /* * Via this table, the destination, existing data formats and the desired action * are assigned to an action and the data format to be used in it. The table is diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx index 026881b9a7d7..08f023c5f52a 100644 --- a/sot/source/sdstor/stgio.cxx +++ b/sot/source/sdstor/stgio.cxx @@ -154,6 +154,7 @@ bool StgIo::CommitAll() return false; } +namespace { class EasyFat { @@ -171,6 +172,8 @@ public: bool HasUnrefChains() const; }; +} + EasyFat::EasyFat( StgIo& rIo, StgStrm* pFatStream, sal_Int32 nPSize ) { nPages = pFatStream->GetSize() >> 2; @@ -236,6 +239,8 @@ FatError EasyFat::Mark( sal_Int32 nPage, sal_Int32 nCount, sal_Int32 nExpect ) return FatError::Ok; } +namespace { + class Validator { FatError nError; @@ -255,6 +260,8 @@ public: bool IsError() const { return nError != FatError::Ok; } }; +} + Validator::Validator( StgIo &rIoP ) : aSmallFat( rIoP, rIoP.m_pDataFAT, 1 << rIoP.m_aHdr.GetDataPageSize() ), aFat( rIoP, rIoP.m_pFAT, 1 << rIoP.m_aHdr.GetPageSize() ), diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 22ef098bbbf4..9edd26aae4eb 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -79,6 +79,9 @@ static int nOpenStreams=0; #endif typedef ::cppu::WeakImplHelper < XInputStream, XSeekable > FileInputStreamWrapper_Base; + +namespace { + class FileStreamWrapper_Impl : public FileInputStreamWrapper_Base { protected: @@ -104,6 +107,7 @@ protected: void checkError(); }; +} FileStreamWrapper_Impl::FileStreamWrapper_Impl( const OUString& rName ) : m_aURL( rName ) |