diff options
author | Simon Rettberg | 2015-02-03 17:17:17 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-02-03 17:17:17 +0100 |
commit | 5caf1c18bb4f686c140cb58bd1f7bf50fb783c43 (patch) | |
tree | 3c381ae1d51a7ff409880d704c5594344a840615 /src/maingui/main.cpp | |
parent | Bring windows to top more agressively (diff) | |
download | printergui-5caf1c18bb4f686c140cb58bd1f7bf50fb783c43.tar.gz printergui-5caf1c18bb4f686c140cb58bd1f7bf50fb783c43.tar.xz printergui-5caf1c18bb4f686c140cb58bd1f7bf50fb783c43.zip |
Consistent code formatting
Diffstat (limited to 'src/maingui/main.cpp')
-rw-r--r-- | src/maingui/main.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/maingui/main.cpp b/src/maingui/main.cpp index f9b8bb2..53aa68f 100644 --- a/src/maingui/main.cpp +++ b/src/maingui/main.cpp @@ -6,20 +6,21 @@ int main(int argc, char *argv[]) { - // First check parameter count - if (argc != 3) - return 2; + // First check parameter count + if (argc != 3) { + return 2; + } - // Check if file exists - int fh = open(argv[2], O_RDONLY); - if (fh < 0) { - fprintf(stderr, "ERROR: Could not open %s for reading..\n", argv[2]); - return 2; - } - close(fh); + // Check if file exists + int fh = open(argv[2], O_RDONLY); + if (fh < 0) { + fprintf(stderr, "ERROR: Could not open %s for reading..\n", argv[2]); + return 2; + } + close(fh); - QApplication a(argc, argv); - PrinterGui w(argv); - w.show(); - return a.exec(); + QApplication a(argc, argv); + PrinterGui w(argv); + w.show(); + return a.exec(); } |