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 ...@@ -176,9 +176,9 @@ namespace DOM
{ {
OUStringBuffer buf; OUStringBuffer buf;
buf.appendAscii(ctxt->lastError.message); buf.appendAscii(ctxt->lastError.message);
buf.appendAscii("Line: "); buf.append("Line: ");
buf.append(static_cast<sal_Int32>(ctxt->lastError.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)); buf.append(static_cast<sal_Int32>(ctxt->lastError.int2));
OUString msg = buf.makeStringAndClear(); OUString msg = buf.makeStringAndClear();
return msg; return msg;
......
...@@ -146,12 +146,12 @@ OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException, ...@@ -146,12 +146,12 @@ OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException,
{ {
if (!m_Language.isEmpty()) { if (!m_Language.isEmpty()) {
OUStringBuffer buf(m_Value); OUStringBuffer buf(m_Value);
buf.appendAscii("@"); buf.append("@");
buf.append(m_Language); buf.append(m_Language);
return buf.makeStringAndClear(); return buf.makeStringAndClear();
} else if (m_xDatatype.is()) { } else if (m_xDatatype.is()) {
OUStringBuffer buf(m_Value); OUStringBuffer buf(m_Value);
buf.appendAscii("^^"); buf.append("^^");
buf.append(m_xDatatype->getStringValue()); buf.append(m_xDatatype->getStringValue());
return buf.makeStringAndClear(); return buf.makeStringAndClear();
} else { } else {
......
...@@ -268,18 +268,18 @@ namespace XPath ...@@ -268,18 +268,18 @@ namespace XPath
} }
int line = pError->line; int line = pError->line;
if (line) { if (line) {
buf.appendAscii("Line: "); buf.append("Line: ");
buf.append(static_cast<sal_Int32>(line)); buf.append(static_cast<sal_Int32>(line));
buf.appendAscii("\n"); buf.append("\n");
} }
int column = pError->int2; int column = pError->int2;
if (column) { if (column) {
buf.appendAscii("Column: "); buf.append("Column: ");
buf.append(static_cast<sal_Int32>(column)); buf.append(static_cast<sal_Int32>(column));
buf.appendAscii("\n"); buf.append("\n");
} }
} else { } else {
buf.appendAscii("no error argument!"); buf.append("no error argument!");
} }
OUString msg = buf.makeStringAndClear(); OUString msg = buf.makeStringAndClear();
return msg; 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