mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
Fixed gcc warnings.
This commit is contained in:
parent
3ebf8ad293
commit
25b3a8c75c
2 changed files with 6 additions and 10 deletions
|
@ -463,13 +463,8 @@ void TestRunner::checkTime() {
|
||||||
// Check the time
|
// Check the time
|
||||||
bool timeToRun{ false };
|
bool timeToRun{ false };
|
||||||
QTime time = now.time();
|
QTime time = now.time();
|
||||||
int h = time.hour();
|
|
||||||
int m = time.minute();
|
|
||||||
|
|
||||||
for (int i = 0; i < std::min(_timeEditCheckboxes.size(), _timeEdits.size()); ++i) {
|
for (size_t i = 0; i < std::min(_timeEditCheckboxes.size(), _timeEdits.size()); ++i) {
|
||||||
bool is = _timeEditCheckboxes[i]->isChecked();
|
|
||||||
int hh = _timeEdits[i]->time().hour();
|
|
||||||
int mm = _timeEdits[i]->time().minute();
|
|
||||||
if (_timeEditCheckboxes[i]->isChecked() && (_timeEdits[i]->time().hour() == now.time().hour()) &&
|
if (_timeEditCheckboxes[i]->isChecked() && (_timeEdits[i]->time().hour() == now.time().hour()) &&
|
||||||
(_timeEdits[i]->time().minute() == now.time().minute())) {
|
(_timeEdits[i]->time().minute() == now.time().minute())) {
|
||||||
timeToRun = true;
|
timeToRun = true;
|
||||||
|
@ -543,7 +538,7 @@ void TestRunner::parseBuildInformation() {
|
||||||
QString platformOfInterest;
|
QString platformOfInterest;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
platformOfInterest = "windows";
|
platformOfInterest = "windows";
|
||||||
#else if Q_OS_MAC
|
#elif Q_OS_MAC
|
||||||
platformOfInterest = "mac";
|
platformOfInterest = "mac";
|
||||||
#endif
|
#endif
|
||||||
QDomElement element = domDocument.documentElement();
|
QDomElement element = domDocument.documentElement();
|
||||||
|
@ -611,7 +606,8 @@ void Worker::setCommandLine(const QString& commandLine) {
|
||||||
_commandLine = commandLine;
|
_commandLine = commandLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::runCommand() {
|
int Worker::runCommand() {
|
||||||
system(_commandLine.toStdString().c_str());
|
int result = system(_commandLine.toStdString().c_str());
|
||||||
emit commandComplete();
|
emit commandComplete();
|
||||||
|
return result;
|
||||||
}
|
}
|
|
@ -138,7 +138,7 @@ public:
|
||||||
void setCommandLine(const QString& commandLine);
|
void setCommandLine(const QString& commandLine);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void runCommand();
|
int runCommand();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void commandComplete();
|
void commandComplete();
|
||||||
|
|
Loading…
Reference in a new issue