loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Id852428e7b7cde6eec6eeb9a2a9004d1f2e789b6
This commit is contained in:
@@ -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(
|
|||||||
}
|
}
|
||||||
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("&");
|
buf.append("&");
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
buf.appendAscii(""");
|
buf.append(""");
|
||||||
break;
|
break;
|
||||||
case '\'':
|
case '\'':
|
||||||
buf.appendAscii("'");
|
buf.append("'");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
buf.append(c);
|
buf.append(c);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buf.appendAscii("']");
|
buf.append("']");
|
||||||
return buf.makeStringAndClear();
|
return buf.makeStringAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user