summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/provider')
-rw-r--r--ucbhelper/source/provider/contenthelper.cxx8
-rw-r--r--ucbhelper/source/provider/resultset.cxx11
2 files changed, 19 insertions, 0 deletions
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index a7f39fced3d8..653f0d47e125 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -48,6 +48,8 @@ using namespace com::sun::star;
namespace ucbhelper_impl
{
+namespace {
+
class PropertyEventSequence
{
uno::Sequence< beans::PropertyChangeEvent > m_aSeq;
@@ -64,8 +66,12 @@ public:
{ m_aSeq.realloc( m_nPos ); return m_aSeq; }
};
+}
+
typedef void* XPropertiesChangeListenerPtr; // -> Compiler problems!
+namespace {
+
struct equalPtr
{
bool operator()( const XPropertiesChangeListenerPtr& rp1,
@@ -83,6 +89,8 @@ struct hashPtr
}
};
+}
+
typedef std::unordered_map
<
XPropertiesChangeListenerPtr,
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 133b66a1da56..de8f868c8445 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -38,6 +38,8 @@ using namespace com::sun::star;
namespace ucbhelper_impl
{
+namespace {
+
struct PropertyInfo
{
const char* pName;
@@ -46,6 +48,8 @@ struct PropertyInfo
const uno::Type& (*pGetCppuType)();
};
+}
+
static const uno::Type& sal_Int32_getCppuType()
{
return cppu::UnoType<sal_Int32>::get();
@@ -80,6 +84,7 @@ static const PropertyInfo aPropertyTable[] =
// class PropertySetInfo
+namespace {
class PropertySetInfo :
public cppu::OWeakObject,
@@ -115,9 +120,13 @@ public:
virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override;
};
+}
+
typedef cppu::OMultiTypeInterfaceContainerHelperVar<OUString>
PropertyChangeListenerContainer;
+namespace {
+
class PropertyChangeListeners : public PropertyChangeListenerContainer
{
public:
@@ -125,6 +134,8 @@ public:
: PropertyChangeListenerContainer( rMtx ) {}
};
+}
+
} // namespace ucbhelper_impl
using namespace ucbhelper_impl;