diff options
Diffstat (limited to 'skinnopacity.c')
-rw-r--r-- | skinnopacity.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/skinnopacity.c b/skinnopacity.c index f24b9a4..3085489 100644 --- a/skinnopacity.c +++ b/skinnopacity.c @@ -73,26 +73,20 @@ bool cPluginNopacity::ProcessArgs(int argc, char *argv[]) }; int c; - cString *path = NULL; while ((c = getopt_long(argc, argv, "e:l:i:", long_options, NULL)) != -1) { switch (c) { case 'l': - path = new cString(optarg); - config.SetLogoPath(*path); + config.SetLogoPath(cString(optarg)); break; case 'e': - path = new cString(optarg); - config.SetEpgImagePath(*path); + config.SetEpgImagePath(cString(optarg)); break; case 'i': - path = new cString(optarg); - config.SetIconPath(*path); + config.SetIconPath(cString(optarg)); break; default: return false; } - if (path) - delete path; } return true; } |