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

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: Iddea2a6462b52e39aab31e96fbc83836cf157e27
üst bcba4102
......@@ -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;
......
......@@ -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 {
......
......@@ -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;
......
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