summaryrefslogtreecommitdiffstats
path: root/src/maingui/main.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-03 17:17:17 +0100
committerSimon Rettberg2015-02-03 17:17:17 +0100
commit5caf1c18bb4f686c140cb58bd1f7bf50fb783c43 (patch)
tree3c381ae1d51a7ff409880d704c5594344a840615 /src/maingui/main.cpp
parentBring windows to top more agressively (diff)
downloadprintergui-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.cpp29
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();
}