From 144c9537b7f1d0e1f6c6f7aa3703b83061511515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 11 Aug 2014 21:48:59 +0200 Subject: [PATCH] Fixed build in MacOSX/Qt4 --- YACReader/main.cpp | 4 ++-- YACReaderLibrary/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/YACReader/main.cpp b/YACReader/main.cpp index c6f81e94..70028440 100644 --- a/YACReader/main.cpp +++ b/YACReader/main.cpp @@ -95,12 +95,12 @@ int main(int argc, char * argv[]) if (!optlist.isEmpty()) { QTextStream parser(stdout); - if (optlist.contains("--version") | optlist.contains("-v")) + if (optlist.contains("--version") || optlist.contains("-v")) { parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl; return 0; } - if (optlist.contains("--help") | optlist.contains("-h")) + if (optlist.contains("--help") || optlist.contains("-h")) { parser << endl << "Usage: YACReader [File|Directory|Option]" << endl << endl; parser << "Options:" << endl; diff --git a/YACReaderLibrary/main.cpp b/YACReaderLibrary/main.cpp index a159acda..25f214b9 100644 --- a/YACReaderLibrary/main.cpp +++ b/YACReaderLibrary/main.cpp @@ -149,12 +149,12 @@ int main( int argc, char ** argv ) { QTextStream parser(stdout); QStringList optlist = QCoreApplication::arguments().filter(QRegExp ("^-{1,2}")); - if (optlist.contains("--version") | optlist.contains("-v")) + if (optlist.contains("--version") || optlist.contains("-v")) { parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl; return 0; } - if (optlist.contains("--help") | optlist.contains("-h")) + if (optlist.contains("--help") || optlist.contains("-h")) { parser << endl << "Usage:" << "\tYACReaderLibrary [Option]" << endl << endl; parser << "Options:" << endl;