summaryrefslogtreecommitdiff
path: root/stoc/source/uriproc
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 15:37:46 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:42 +0200
commit27cea710fd1e4e8887bcb95e1d25a53d9eae9f22 (patch)
tree008d7618c1ac152dca698a9ad2d791db0afecd58 /stoc/source/uriproc
parent99268dbe1fc25bc2d04eefa1a9f7e2cf7b398065 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *) *{$/\1\2 ( \3 == \4 ) {/' \{\} \;
Diffstat (limited to 'stoc/source/uriproc')
-rw-r--r--stoc/source/uriproc/UriReferenceFactory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx
index faaa0937f080..a354356049b9 100644
--- a/stoc/source/uriproc/UriReferenceFactory.cxx
+++ b/stoc/source/uriproc/UriReferenceFactory.cxx
@@ -282,12 +282,12 @@ void processSegments(
for (sal_Int32 i = 0; i < count; ++i) {
if (processSpecialSegments) {
rtl::OUString segment(uriReference->getPathSegment(i));
- if (segment.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("."))) {
+ if ( segment == "." ) {
if (!base && i == count - 1) {
segments.push_back(0);
}
continue;
- } else if (segment.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(".."))) {
+ } else if ( segment == ".." ) {
if (segments.empty()
|| /*MSVC trouble: std::*/abs(segments.back()) == 1)
{