From d57a33520003ef6f88277dd4ea57cf662b10aac5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 31 Aug 2015 08:00:42 +0200 Subject: loplugin:stringconstant: OUStringBuffer: appendAscii -> append Change-Id: Iddea2a6462b52e39aab31e96fbc83836cf157e27 --- unoxml/source/dom/documentbuilder.cxx | 4 ++-- unoxml/source/rdf/CLiteral.cxx | 4 ++-- unoxml/source/xpath/xpathapi.cxx | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'unoxml') 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(ctxt->lastError.line)); - buf.appendAscii("\nColumn: "); + buf.append("\nColumn: "); buf.append(static_cast(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(line)); - buf.appendAscii("\n"); + buf.append("\n"); } int column = pError->int2; if (column) { - buf.appendAscii("Column: "); + buf.append("Column: "); buf.append(static_cast(column)); - buf.appendAscii("\n"); + buf.append("\n"); } } else { - buf.appendAscii("no error argument!"); + buf.append("no error argument!"); } OUString msg = buf.makeStringAndClear(); return msg; -- cgit