Kaydet (Commit) 9a25d125 authored tarafından Matúš Kukan's avatar Matúš Kukan

This was OString already; use it that way

Change-Id: Ia2268ce8a1e2111adb609c515e5bfa824afa66ce
üst 86de557e
...@@ -225,7 +225,7 @@ namespace sax_fastparser { ...@@ -225,7 +225,7 @@ namespace sax_fastparser {
void FastSaxSerializer::writeFastAttributeList( const Reference< XFastAttributeList >& Attribs ) void FastSaxSerializer::writeFastAttributeList( const Reference< XFastAttributeList >& Attribs )
{ {
#ifdef DBG_UTIL #ifdef DBG_UTIL
::std::set<OUString> DebugAttributes; ::std::set<OString> DebugAttributes;
#endif #endif
Sequence< Attribute > aAttrSeq = Attribs->getUnknownAttributes(); Sequence< Attribute > aAttrSeq = Attribs->getUnknownAttributes();
const Attribute *pAttr = aAttrSeq.getConstArray(); const Attribute *pAttr = aAttrSeq.getConstArray();
...@@ -258,10 +258,9 @@ namespace sax_fastparser { ...@@ -258,10 +258,9 @@ namespace sax_fastparser {
#ifdef DBG_UTIL #ifdef DBG_UTIL
// Well-formedness constraint: Unique Att Spec // Well-formedness constraint: Unique Att Spec
OUString const name(OStringToOUString(getId(nToken), OString const nameId(getId(nToken));
RTL_TEXTENCODING_UTF8)); assert(DebugAttributes.find(nameId) == DebugAttributes.end());
assert(DebugAttributes.find(name) == DebugAttributes.end()); DebugAttributes.insert(nameId);
DebugAttributes.insert(name);
#endif #endif
writeBytes(toUnoSequence(maEqualSignAndQuote)); writeBytes(toUnoSequence(maEqualSignAndQuote));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment