diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 15:05:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 15:07:41 +0200 |
commit | 743f22045c4ec08c46c259fc0ba240194a391457 (patch) | |
tree | faed42bb31c4ee767619eb5c3ebd4dec0a41fa03 /desktop/source/pkgchk | |
parent | 0c6ebe5d225d6a655f078977455cec6d0a3afa6e (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/source/pkgchk')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_app.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index 7b48403cdb12..bc2fda67839c 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -483,7 +483,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() xExtensionManager->reinstallDeployedExtensions( repository, Reference<task::XAbortChannel>(), xCmdEnv); } - else if (subCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("list") )) + else if ( subCommand == "list" ) { ::std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; ::comphelper::sequenceToContainer(vecExtUnaccepted, @@ -572,7 +572,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() printf_packages(allExtensions, vecUnaccepted, xCmdEnv ); } - else if (subCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("validate") )) + else if ( subCommand == "validate" ) { ::std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; ::comphelper::sequenceToContainer( @@ -610,7 +610,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() extension, Reference<task::XAbortChannel>(), xCmdEnv); } } - else if (subCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("gui") )) + else if ( subCommand == "gui" ) { Reference<ui::dialogs::XAsynchronousExecutableDialog> xDialog( deployment::ui::PackageManagerDialog::createAndInstall( @@ -626,7 +626,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() xDialog->startExecuteModal(xListener); dialogEnded.wait(); } - else if (subCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("sync"))) + else if ( subCommand == "sync" ) { if (! dp_misc::office_is_running()) { |