summaryrefslogtreecommitdiffstats
path: root/desktop/source/pkgchk/unopkg/unopkg_app.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_app.cxx')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index bc2fda67839c..2bd4d1b99214 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -284,10 +284,8 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
osl_getCommandArg( nPos, &subCommand.pData );
++nPos;
subCommand = subCommand.trim();
- subcmd_add = subCommand.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("add") );
- subcmd_gui = subCommand.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("gui") );
+ subcmd_add = subCommand == "add";
+ subcmd_gui = subCommand == "gui";
// sun-command options and packages:
while (nPos < nCount)
@@ -345,8 +343,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
}
else
{
- if (repository.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("shared") )) {
+ if ( repository == "shared" ) {
option_shared = true;
}
else if (option_shared) {
@@ -437,9 +434,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
&& ! dp_misc::office_is_running())
dp_misc::syncRepositories(xCmdEnv);
- if (subcmd_add ||
- subCommand.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("remove") ))
+ if ( subcmd_add || subCommand == "remove" )
{
for ( ::std::size_t pos = 0; pos < cmdPackages.size(); ++pos )
{