summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_byteseq.cxx8
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx12
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx5
3 files changed, 25 insertions, 0 deletions
diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx
index 23322324bf4e..693ef301384e 100644
--- a/xmlscript/source/xml_helper/xml_byteseq.cxx
+++ b/xmlscript/source/xml_helper/xml_byteseq.cxx
@@ -32,6 +32,8 @@ using namespace com::sun::star::uno;
namespace xmlscript
{
+namespace {
+
class BSeqInputStream
: public ::cppu::WeakImplHelper< io::XInputStream >
{
@@ -55,6 +57,8 @@ public:
virtual void SAL_CALL closeInput() override;
};
+}
+
sal_Int32 BSeqInputStream::readBytes(
Sequence< sal_Int8 > & rData, sal_Int32 nBytesToRead )
{
@@ -91,6 +95,8 @@ void BSeqInputStream::closeInput()
{
}
+namespace {
+
class BSeqOutputStream
: public ::cppu::WeakImplHelper< io::XOutputStream >
{
@@ -108,6 +114,8 @@ public:
virtual void SAL_CALL closeOutput() override;
};
+}
+
void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData )
{
sal_Int32 nPos = _seq->size();
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,
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx
index 22c891c47384..6b3d9c425417 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx
@@ -32,6 +32,8 @@ using namespace ::com::sun::star::frame;
namespace xmlscript
{
+namespace {
+
class InputStreamProvider
: public ::cppu::WeakImplHelper< io::XInputStreamProvider >
{
@@ -46,6 +48,9 @@ public:
// XInputStreamProvider
virtual uno::Reference< io::XInputStream > SAL_CALL createInputStream() override;
};
+
+}
+
uno::Reference< io::XInputStream > InputStreamProvider::createInputStream()
{
return ::xmlscript::createInputStream( _bytes );