Fixed build in MacOSX/Qt4

This commit is contained in:
Luis Ángel San Martín 2014-08-11 21:48:59 +02:00
parent c365e2f9dc
commit 144c9537b7
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;