Files
haikuports/haiku-apps/bookmarkconverter/patches/bookmarkconverter-0.4.3.patchset
2017-04-12 21:17:21 +02:00

27 lines
629 B
Plaintext

From 57663e3684c59ceab22b60c63ef51fcb536d9b78 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 12 Apr 2017 21:10:09 +0200
Subject: fix build on gcc5
diff --git a/src/main.cpp b/src/main.cpp
index b670c7a..ecbd0c5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -92,8 +92,10 @@ int main(int argc, char* argv[])
if (input == NULL) {
BDirectory test(paths[0].String());
- input = (test.InitCheck() == B_OK) ?
- new BeInput() : new QupZillaInput();
+ if (test.InitCheck() == B_OK)
+ input = new BeInput();
+ else
+ input = new QupZillaInput();
}
if (output == NULL)
--
2.11.0