summaryrefslogtreecommitdiff
path: root/desktop
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 /desktop
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 'desktop')
-rw-r--r--desktop/source/app/langselect.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index 387dca0398a5..10a462c76ff1 100644
--- a/desktop/source/app/langselect.cxx
+++ b/desktop/source/app/langselect.cxx
@@ -394,7 +394,7 @@ Sequence< OUString > LanguageSelection::getInstalledLanguages()
static Sequence< OUString > _getFallbackLocales(const OUString& aIsoLang)
{
Sequence< OUString > seqFallbacks;
- if (aIsoLang.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("zh-HK"))) {
+ if ( aIsoLang == "zh-HK" ) {
seqFallbacks = Sequence< OUString >(1);
seqFallbacks[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("zh-TW"));
}
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index 1a221c91b1fb..572b91e884cf 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -351,7 +351,7 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
Reference<deployment::XPackageManager> xPackageManager( that );
OUString packages, logFile, stamp;
- if (context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("user") )) {
+ if ( context == "user" ) {
that->m_activePackages = OUSTR(
"vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages");
that->m_registrationData = OUSTR(
@@ -373,7 +373,7 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
//the virtual store).
stamp = OUSTR("$UNO_USER_PACKAGES_CACHE");
}
- else if (context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("shared") )) {
+ else if ( context == "shared" ) {
that->m_activePackages = OUSTR(
"vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages");
that->m_registrationData = OUSTR(
@@ -384,7 +384,7 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
"vnd.sun.star.expand:$SHARED_EXTENSIONS_USER/log.txt");
stamp = OUSTR("$UNO_SHARED_PACKAGES_CACHE");
}
- else if (context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("bundled") )) {
+ else if ( context == "bundled" ) {
that->m_activePackages = OUSTR(
"vnd.sun.star.expand:$BUNDLED_EXTENSIONS");
that->m_registrationData = OUSTR(
@@ -396,7 +396,7 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
//No stamp file. We assume that bundled is always readonly. It must not be
//modified from ExtensionManager but only by the installer
}
- else if (context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("bundled_prereg") )) {
+ else if ( context == "bundled_prereg" ) {
//This is a bundled repository but the registration data
//is in the brand layer: share/prereg
//It is special because the registration data are copied at the first startup
@@ -414,7 +414,7 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
logFile = OUSTR(
"vnd.sun.star.expand:$BUNDLED_EXTENSIONS_PREREG/log.txt");
}
- else if (context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("tmp") )) {
+ else if ( context == "tmp" ) {
that->m_activePackages = OUSTR(
"vnd.sun.star.expand:$TMP_EXTENSIONS/extensions");
that->m_registrationData = OUSTR(