summaryrefslogtreecommitdiff
path: root/stoc/source/uriproc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-19 17:06:06 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 10:07:32 +0200
commit52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (patch)
tree72d0d1d16806f1c785a4f79ea2c0cdfe54bb8101 /stoc/source/uriproc
parent3af99e4d59d89c343965a928681a30f36b1007d2 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
Diffstat (limited to 'stoc/source/uriproc')
-rw-r--r--stoc/source/uriproc/ExternalUriReferenceTranslator.cxx2
-rw-r--r--stoc/source/uriproc/UriReference.cxx2
-rw-r--r--stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
index b042197bd858..91f5b8cd68d8 100644
--- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
+++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
@@ -114,7 +114,7 @@ OUString Translator::translateToInternal(
// authority part; treat them as having an empty authority part:
if (!externalUriReference.matchAsciiL(RTL_CONSTASCII_STRINGPARAM("//"), i))
{
- buf.appendAscii(RTL_CONSTASCII_STRINGPARAM("//"));
+ buf.append("//");
}
rtl_TextEncoding encoding = osl_getThreadTextEncoding();
for (bool path = true;;) {
diff --git a/stoc/source/uriproc/UriReference.cxx b/stoc/source/uriproc/UriReference.cxx
index 312203d78587..3544b60e2c96 100644
--- a/stoc/source/uriproc/UriReference.cxx
+++ b/stoc/source/uriproc/UriReference.cxx
@@ -184,7 +184,7 @@ void UriReference::clearFragment() throw (css::uno::RuntimeException) {
void UriReference::appendSchemeSpecificPart(OUStringBuffer & buffer) const
{
if (m_hasAuthority) {
- buffer.appendAscii(RTL_CONSTASCII_STRINGPARAM("//"));
+ buffer.append("//");
buffer.append(m_authority);
}
buffer.append(m_path);
diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
index 16aa0780cd56..f8234f2397c8 100644
--- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
+++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
@@ -106,7 +106,7 @@ Factory::createVndSunStarPkgUrlReference(
OSL_ASSERT(authority.is());
if (authority->isAbsolute() && !authority->hasFragment()) {
OUStringBuffer buf;
- buf.appendAscii(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.pkg://"));
+ buf.append("vnd.sun.star.pkg://");
buf.append(
rtl::Uri::encode(
authority->getUriReference(), rtl_UriCharClassRegName,