summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:00:42 +0200
commitd57a33520003ef6f88277dd4ea57cf662b10aac5 (patch)
tree1cb1e74cb770613154e4e4570f0282b9749200e1 /unoxml
parentbcba4102b47b69527dc85caae3b3499ccc437870 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Iddea2a6462b52e39aab31e96fbc83836cf157e27
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx4
-rw-r--r--unoxml/source/rdf/CLiteral.cxx4
-rw-r--r--unoxml/source/xpath/xpathapi.cxx10
3 files changed, 9 insertions, 9 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index e3fc29b0b840..a5a1bb5ec117 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -176,9 +176,9 @@ namespace DOM
{
OUStringBuffer buf;
buf.appendAscii(ctxt->lastError.message);
- buf.appendAscii("Line: ");
+ buf.append("Line: ");
buf.append(static_cast<sal_Int32>(ctxt->lastError.line));
- buf.appendAscii("\nColumn: ");
+ buf.append("\nColumn: ");
buf.append(static_cast<sal_Int32>(ctxt->lastError.int2));
OUString msg = buf.makeStringAndClear();
return msg;
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index f00dbacee8fc..93cd8926448d 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -146,12 +146,12 @@ OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException,
{
if (!m_Language.isEmpty()) {
OUStringBuffer buf(m_Value);
- buf.appendAscii("@");
+ buf.append("@");
buf.append(m_Language);
return buf.makeStringAndClear();
} else if (m_xDatatype.is()) {
OUStringBuffer buf(m_Value);
- buf.appendAscii("^^");
+ buf.append("^^");
buf.append(m_xDatatype->getStringValue());
return buf.makeStringAndClear();
} else {
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index 9d562a9b502e..9cca92d85e6e 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -268,18 +268,18 @@ namespace XPath
}
int line = pError->line;
if (line) {
- buf.appendAscii("Line: ");
+ buf.append("Line: ");
buf.append(static_cast<sal_Int32>(line));
- buf.appendAscii("\n");
+ buf.append("\n");
}
int column = pError->int2;
if (column) {
- buf.appendAscii("Column: ");
+ buf.append("Column: ");
buf.append(static_cast<sal_Int32>(column));
- buf.appendAscii("\n");
+ buf.append("\n");
}
} else {
- buf.appendAscii("no error argument!");
+ buf.append("no error argument!");
}
OUString msg = buf.makeStringAndClear();
return msg;