Kaydet (Commit) 5f5ccfc0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: Id852428e7b7cde6eec6eeb9a2a9004d1f2e789b6
üst 7bff36d4
...@@ -47,7 +47,7 @@ namespace { ...@@ -47,7 +47,7 @@ namespace {
void appendMessage( void appendMessage(
OUStringBuffer & buffer, css::uno::Exception const & exception) OUStringBuffer & buffer, css::uno::Exception const & exception)
{ {
buffer.appendAscii("; "); buffer.append("; ");
buffer.append(exception.Message); buffer.append(exception.Message);
} }
......
...@@ -87,25 +87,25 @@ OUString Data::createSegment( ...@@ -87,25 +87,25 @@ OUString Data::createSegment(
} }
OUStringBuffer buf(templateName); OUStringBuffer buf(templateName);
//TODO: verify template name contains no bad chars? //TODO: verify template name contains no bad chars?
buf.appendAscii("['"); buf.append("['");
for (sal_Int32 i = 0; i < name.getLength(); ++i) { for (sal_Int32 i = 0; i < name.getLength(); ++i) {
sal_Unicode c = name[i]; sal_Unicode c = name[i];
switch (c) { switch (c) {
case '&': case '&':
buf.appendAscii("&amp;"); buf.append("&amp;");
break; break;
case '"': case '"':
buf.appendAscii("&quot;"); buf.append("&quot;");
break; break;
case '\'': case '\'':
buf.appendAscii("&apos;"); buf.append("&apos;");
break; break;
default: default:
buf.append(c); buf.append(c);
break; break;
} }
} }
buf.appendAscii("']"); buf.append("']");
return buf.makeStringAndClear(); return buf.makeStringAndClear();
} }
......
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