summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-11-12 16:09:42 +0100
committerLuboš Luňák <l.lunak@collabora.com>2014-11-12 16:18:38 +0100
commit8a75dafbe19b19fe8b39e4e85f5ffa47da23f41e (patch)
treea46316e71b5a3aca07ba3629888e816838c7a159 /sax/source
parent95cec52515a51a96e58fae9aa11ca2459365e66d (diff)
make FastAttributeList's unknown attribute value be passed as OString
Since that's how it's internally stored anyway, and I have a use case where it's useful to limit the length by passing it to OString ctor. Change-Id: I5903ea4f1b2cdb48c1bbceac6b8e21eb5882d377
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/fastattribs.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 36277cf3a236..d32f484632aa 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -32,13 +32,13 @@ FastTokenHandlerBase::~FastTokenHandlerBase()
{
}
-UnknownAttribute::UnknownAttribute( const OUString& rNamespaceURL, const OString& rName, const sal_Char* pValue )
- : maNamespaceURL( rNamespaceURL ), maName( rName ), maValue( pValue )
+UnknownAttribute::UnknownAttribute( const OUString& rNamespaceURL, const OString& rName, const OString& value )
+ : maNamespaceURL( rNamespaceURL ), maName( rName ), maValue( value )
{
}
-UnknownAttribute::UnknownAttribute( const OString& rName, const sal_Char* pValue )
- : maName( rName ), maValue( pValue )
+UnknownAttribute::UnknownAttribute( const OString& rName, const OString& value )
+ : maName( rName ), maValue( value )
{
}
@@ -106,14 +106,14 @@ void FastAttributeList::addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, cons
add( nCombinedToken, rValue );
}
-void FastAttributeList::addUnknown( const OUString& rNamespaceURL, const OString& rName, const sal_Char* pValue )
+void FastAttributeList::addUnknown( const OUString& rNamespaceURL, const OString& rName, const OString& value )
{
- maUnknownAttributes.push_back( UnknownAttribute( rNamespaceURL, rName, pValue ) );
+ maUnknownAttributes.push_back( UnknownAttribute( rNamespaceURL, rName, value ) );
}
-void FastAttributeList::addUnknown( const OString& rName, const sal_Char* pValue )
+void FastAttributeList::addUnknown( const OString& rName, const OString& value )
{
- maUnknownAttributes.push_back( UnknownAttribute( rName, pValue ) );
+ maUnknownAttributes.push_back( UnknownAttribute( rName, value ) );
}
// XFastAttributeList