diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /configmgr | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/access.cxx | 10 | ||||
-rw-r--r-- | configmgr/source/childaccess.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/data.cxx | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index fa32488c58ca..bc8f09c5f98f 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -67,7 +67,7 @@ void normalize( *name = relative; } else { OUStringBuffer buf(path); - buf.append(sal_Unicode('/')); + buf.append('/'); buf.append(relative.copy(0, i)); *normalizedPath = buf.makeStringAndClear(); *name = relative.copy(i + 1); diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 2b047dffd757..280f053c7f36 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -550,7 +550,7 @@ OUString Access::getHierarchicalName() throw (css::uno::RuntimeException) { } OUString rel(getRelativePathRepresentation()); if (!path.isEmpty() && !rel.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } path.append(rel); return path.makeStringAndClear(); @@ -572,7 +572,7 @@ OUString Access::composeHierarchicalName( } OUStringBuffer path(getRelativePathRepresentation()); if (!path.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } path.append(aRelativeName); return path.makeStringAndClear(); @@ -1845,7 +1845,7 @@ void Access::initBroadcasterAndChanges( if (allChanges != 0) { OUStringBuffer path(getRelativePathRepresentation()); if (!path.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } path.append(Data::createSegment("*", i->first)); allChanges->push_back( @@ -1904,7 +1904,7 @@ void Access::initBroadcasterAndChanges( OUStringBuffer path( getRelativePathRepresentation()); if (!path.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } path.append(i->first); allChanges->push_back( @@ -1941,7 +1941,7 @@ void Access::initBroadcasterAndChanges( OUStringBuffer path( getRelativePathRepresentation()); if (!path.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } path.append(Data::createSegment("*", i->first)); allChanges->push_back( diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx index dec5c46e7b64..9e80d1bb6f5b 100644 --- a/configmgr/source/childaccess.cxx +++ b/configmgr/source/childaccess.cxx @@ -114,7 +114,7 @@ OUString ChildAccess::getRelativePathRepresentation() { if (parent.is()) { path.append(parent->getRelativePathRepresentation()); if (!path.isEmpty()) { - path.append(sal_Unicode('/')); + path.append('/'); } } path.append(Data::createSegment(node_->getTemplateName(), name_)); diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index dfca76435a8b..8d986997fce9 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -57,13 +57,13 @@ bool decode( sal_Unicode c = encoded[begin++]; if (c == '&') { if (encoded.match("amp;", begin)) { - buf.append(sal_Unicode('&')); + buf.append('&'); begin += RTL_CONSTASCII_LENGTH("amp;"); } else if (encoded.match("quot;", begin)) { - buf.append(sal_Unicode('"')); + buf.append('"'); begin += RTL_CONSTASCII_LENGTH("quot;"); } else if (encoded.match("apos;", begin)) { - buf.append(sal_Unicode('\'')); + buf.append('\''); begin += RTL_CONSTASCII_LENGTH("apos;"); } else { return false; @@ -159,7 +159,7 @@ OUString Data::fullTemplateName( css::uno::Reference< css::uno::XInterface >()); } OUStringBuffer buf(component); - buf.append(sal_Unicode(':')); + buf.append(':'); buf.append(name); return buf.makeStringAndClear(); } @@ -232,7 +232,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( return p; } if (canonicRepresentation != 0) { - canonic.append(sal_Unicode('/')); + canonic.append('/'); canonic.append(createSegment(templateName, seg)); } if (path != 0) { |