summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-10-10 14:11:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-10-10 14:11:03 +0200
commitdccc707da6bdb52a479923e8cfb0d048d7baaec1 (patch)
tree852f5dda684e5b435c134790277c5516d98f21f9 /sax
parent2f10386ce577f52e139aa23d41bc787d8e0b4d59 (diff)
Revert "This was OString already; use it that way"
This reverts commit 9a25d12534f91c13400a63e265fb5aa14c6aca66, there's another use of DebugAttributes.find(rAttrName) in that function where rAttrName is of type OUString.
Diffstat (limited to 'sax')
-rw-r--r--sax/source/tools/fastserializer.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 4466623fcd3e..fbce18aa9ab0 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -225,7 +225,7 @@ namespace sax_fastparser {
void FastSaxSerializer::writeFastAttributeList( const Reference< XFastAttributeList >& Attribs )
{
#ifdef DBG_UTIL
- ::std::set<OString> DebugAttributes;
+ ::std::set<OUString> DebugAttributes;
#endif
Sequence< Attribute > aAttrSeq = Attribs->getUnknownAttributes();
const Attribute *pAttr = aAttrSeq.getConstArray();
@@ -258,9 +258,10 @@ namespace sax_fastparser {
#ifdef DBG_UTIL
// Well-formedness constraint: Unique Att Spec
- OString const nameId(getId(nToken));
- assert(DebugAttributes.find(nameId) == DebugAttributes.end());
- DebugAttributes.insert(nameId);
+ OUString const name(OStringToOUString(getId(nToken),
+ RTL_TEXTENCODING_UTF8));
+ assert(DebugAttributes.find(name) == DebugAttributes.end());
+ DebugAttributes.insert(name);
#endif
writeBytes(toUnoSequence(maEqualSignAndQuote));