diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:04:20 +0200 |
commit | 5f5ccfc0a69de4c10b6adeeaaf284bcb07ab7f39 (patch) | |
tree | 211b32e1d45f05e62882b197c728665d5dc42c25 /configmgr | |
parent | 7bff36d45d946abe40bb7a642165a54d289e11c1 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Id852428e7b7cde6eec6eeb9a2a9004d1f2e789b6
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/broadcaster.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/data.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/configmgr/source/broadcaster.cxx b/configmgr/source/broadcaster.cxx index 2652ae8831e7..87481cc28749 100644 --- a/configmgr/source/broadcaster.cxx +++ b/configmgr/source/broadcaster.cxx @@ -47,7 +47,7 @@ namespace { void appendMessage( OUStringBuffer & buffer, css::uno::Exception const & exception) { - buffer.appendAscii("; "); + buffer.append("; "); buffer.append(exception.Message); } diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index e322b10e07f8..0eb1fff91dcd 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -87,25 +87,25 @@ OUString Data::createSegment( } OUStringBuffer buf(templateName); //TODO: verify template name contains no bad chars? - buf.appendAscii("['"); + buf.append("['"); for (sal_Int32 i = 0; i < name.getLength(); ++i) { sal_Unicode c = name[i]; switch (c) { case '&': - buf.appendAscii("&"); + buf.append("&"); break; case '"': - buf.appendAscii("""); + buf.append("""); break; case '\'': - buf.appendAscii("'"); + buf.append("'"); break; default: buf.append(c); break; } } - buf.appendAscii("']"); + buf.append("']"); return buf.makeStringAndClear(); } |