summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_kdm_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-14 22:40:12 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-14 23:28:26 +0000
commit3cf01b5a9a8312981af2fb432f6c717b1a17c137 (patch)
tree066ec2a8caedbc7c077e1f9a7320250fd02995d8 /src/tools/dcpomatic_kdm_cli.cc
parentf17c1575ec037e3ac2ec95f2725335ca306fd700 (diff)
Whitespace and small stylistic tweaks.
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
-rw-r--r--src/tools/dcpomatic_kdm_cli.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc
index c3ff90255..055170441 100644
--- a/src/tools/dcpomatic_kdm_cli.cc
+++ b/src/tools/dcpomatic_kdm_cli.cc
@@ -489,16 +489,17 @@ int main (int argc, char* argv[])
break;
case 'c':
cinema_name = optarg;
- cinema = shared_ptr<Cinema> (new Cinema (optarg, list<string> (), "", 0, 0 ));
+ cinema = shared_ptr<Cinema> (new Cinema (cinema_name, list<string>(), "", 0, 0));
break;
case 'S':
screen_description = optarg;
break;
- case 'C': {
+ case 'C':
+ {
certificate = dcp::Certificate (dcp::file_to_string (optarg));
vector<dcp::Certificate> trusted_devices;
shared_ptr<Screen> screen (new Screen (screen_description, certificate, trusted_devices));
- if (cinema_name) {
+ if (cinema) {
cinema->add_screen (screen);
}
screens.push_back (screen);