comparison installer.cpp @ 95:24d64a983fc8

MSVC fix
author Chris Cannam
date Fri, 28 Feb 2020 08:53:30 +0000
parents b2e0b5d4cc5a
children b5230bda1f1f
comparison
equal deleted inserted replaced
94:b2e0b5d4cc5a 95:24d64a983fc8
928 928
929 int main(int argc, char **argv) 929 int main(int argc, char **argv)
930 { 930 {
931 if (argc == 2 && (QString(argv[1]) == "--version" || 931 if (argc == 2 && (QString(argv[1]) == "--version" ||
932 QString(argv[1]) == "-v")) { 932 QString(argv[1]) == "-v")) {
933 cerr << PACK_VERSION << endl; 933 cerr << PACK_VERSION << std::endl; // std:: needed here for MSVC for some reason
934 exit(0); 934 exit(0);
935 } 935 }
936 936
937 QApplication app(argc, argv); 937 QApplication app(argc, argv);
938 938
981 << endl; 981 << endl;
982 return 0; 982 return 0;
983 } 983 }
984 984
985 QProgressDialog progress(QObject::tr("Installing..."), 985 QProgressDialog progress(QObject::tr("Installing..."),
986 QObject::tr("Stop"), 0, toInstall.size() + 1); 986 QObject::tr("Stop"), 0,
987 int(toInstall.size()) + 1);
987 progress.setMinimumDuration(0); 988 progress.setMinimumDuration(0);
988 989
989 int pval = 0; 990 int pval = 0;
990 bool complete = true; 991 bool complete = true;
991 992