summaryrefslogtreecommitdiff
path: root/xmlscript/source/xml_helper/xml_impctx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xml_helper/xml_impctx.cxx')
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx
index 6391734cac01..b696577b90da 100644
--- a/xmlscript/source/xml_helper/xml_impctx.cxx
+++ b/xmlscript/source/xml_helper/xml_impctx.cxx
@@ -56,6 +56,8 @@ OUString getImplementationName_DocumentHandlerImpl()
typedef std::unordered_map< OUString, sal_Int32 > t_OUString2LongMap;
+namespace {
+
struct PrefixEntry
{
::std::vector< sal_Int32 > m_Uids;
@@ -64,9 +66,13 @@ struct PrefixEntry
{ m_Uids.reserve( 4 ); }
};
+}
+
typedef std::unordered_map<
OUString, std::unique_ptr<PrefixEntry> > t_OUString2PrefixMap;
+namespace {
+
struct ElementEntry
{
Reference< xml::input::XElement > m_xElement;
@@ -163,6 +169,8 @@ public:
virtual OUString SAL_CALL getUriByUid( sal_Int32 Uid ) override;
};
+}
+
static OUString const g_sXMLNS_PREFIX_UNKNOWN( "<<< unknown prefix >>>" );
static OUString const g_sXMLNS( "xmlns" );
@@ -293,6 +301,8 @@ inline void DocumentHandlerImpl::getElementName(
nColonPos >= 0 ? rQName.copy( 0, nColonPos ) : OUString() );
}
+namespace {
+
class ExtendedAttributes :
public ::cppu::WeakImplHelper< xml::input::XAttributes >
{
@@ -330,6 +340,8 @@ public:
sal_Int32 nIndex ) override;
};
+}
+
inline ExtendedAttributes::ExtendedAttributes(
sal_Int32 nAttributes,
std::unique_ptr<sal_Int32[]> pUids,