summaryrefslogtreecommitdiffstats
path: root/desktop/unx
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-03-13 16:15:01 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-03-16 07:04:53 +0000
commit81886532bf6cfce93f3d7fdd73150d9dd1abbcfb (patch)
tree7b0bf263f30ee512718cb00b2e0eb0883f2487b4 /desktop/unx
parentuse std::unique_ptr for Sm*Dialog (diff)
downloadcore-81886532bf6cfce93f3d7fdd73150d9dd1abbcfb.tar.gz
core-81886532bf6cfce93f3d7fdd73150d9dd1abbcfb.zip
CppCheck cleaning : remove unused struct member
Change-Id: I07ebb82b71d6019a35b7cd2757464dab269d2098 Reviewed-on: https://gerrit.libreoffice.org/14855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'desktop/unx')
-rw-r--r--desktop/unx/source/args.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/desktop/unx/source/args.c b/desktop/unx/source/args.c
index f4c75d54474a..34d3064abd16 100644
--- a/desktop/unx/source/args.c
+++ b/desktop/unx/source/args.c
@@ -21,7 +21,6 @@ is_env_arg (rtl_uString *str)
static struct {
const char *name;
- unsigned int bTwoArgs : 1;
unsigned int bInhibitSplash : 1;
unsigned int bInhibitPagein : 1;
unsigned int bInhibitJavaLdx : 1;
@@ -29,31 +28,31 @@ static struct {
const char *pPageinType;
} pArgDescr[] = {
/* have a trailing argument */
- { "pt", 1, 0, 0, 0, 0, NULL },
- { "display", 1, 0, 0, 0, 0, NULL },
+ { "pt", 0, 0, 0, 0, NULL },
+ { "display", 0, 0, 0, 0, NULL },
/* no splash */
- { "nologo", 0, 1, 0, 0, 0, NULL },
- { "headless", 0, 1, 0, 0, 0, NULL },
- { "invisible", 0, 1, 0, 0, 0, NULL },
- { "quickstart", 0, 1, 0, 0, 0, NULL },
- { "minimized", 0, 1, 0, 0, 0, NULL },
- { "convert-to", 0, 1, 0, 0, 0, NULL },
+ { "nologo", 1, 0, 0, 0, NULL },
+ { "headless", 1, 0, 0, 0, NULL },
+ { "invisible", 1, 0, 0, 0, NULL },
+ { "quickstart", 1, 0, 0, 0, NULL },
+ { "minimized", 1, 0, 0, 0, NULL },
+ { "convert-to", 1, 0, 0, 0, NULL },
/* pagein bits */
- { "writer", 0, 0, 0, 0, 0, "pagein-writer" },
- { "calc", 0, 0, 0, 0, 0, "pagein-calc" },
- { "draw", 0, 0, 0, 0, 0, "pagein-draw" },
- { "impress", 0, 0, 0, 0, 0, "pagein-impress" },
+ { "writer", 0, 0, 0, 0, "pagein-writer" },
+ { "calc", 0, 0, 0, 0, "pagein-calc" },
+ { "draw", 0, 0, 0, 0, "pagein-draw" },
+ { "impress", 0, 0, 0, 0, "pagein-impress" },
/* Do not send --help/--version over the pipe, as their output shall go to
the calling process's stdout (ideally, this would also happen in the
presence of unknown options); also prevent splash/pagein/javaldx overhead
(as these options will be processed early in soffice_main): */
- { "version", 0, 1, 1, 1, 1, NULL },
- { "help", 0, 1, 1, 1, 1, NULL },
- { "h", 0, 1, 1, 1, 1, NULL },
- { "?", 0, 1, 1, 1, 1, NULL },
+ { "version", 1, 1, 1, 1, NULL },
+ { "help", 1, 1, 1, 1, NULL },
+ { "h", 1, 1, 1, 1, NULL },
+ { "?", 1, 1, 1, 1, NULL },
};
Args *args_parse (void)