Skip to content

Commit

Permalink
[Fix] warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alphaonex86 committed Dec 3, 2021
1 parent 4d1653e commit 47c5999
Show file tree
Hide file tree
Showing 28 changed files with 36,665 additions and 5,044 deletions.
2 changes: 1 addition & 1 deletion Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ void Core::periodicSynchronizationWithIndex(const int &index)
currentCopyInstance.interface->remainingTime(transferAddedTime*((double)currentCopyInstance.totalProgression/(double)currentCopyInstance.currentProgression-1)/1000);*/

//do the speed calculation
if(currentCopyInstance.lastProgressionTime.isNull())
if(!currentCopyInstance.lastProgressionTime.isValid())
currentCopyInstance.lastProgressionTime.start();
else
{
Expand Down
6 changes: 3 additions & 3 deletions Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <QString>
#include <QList>
#include <QTimer>
#include <QTime>
#include <QElapsedTimer>
#include <QFile>
#include <QUrl>
#ifndef NOAUDIO
Expand Down Expand Up @@ -53,7 +53,7 @@ class Core : public QObject
struct CopyInstance
{
unsigned int id;
QTime lastProgressionTime;//to compute the speed in B/s
QElapsedTimer lastProgressionTime;//to compute the speed in B/s
PluginInterface_CopyEngine * engine;
PluginInterface_Themes * interface;
bool ignoreMode;
Expand All @@ -74,7 +74,7 @@ class Core : public QObject
Ultracopier::CopyType type;
Ultracopier::TransferListOperation transferListOperation;
bool haveError;
QTime lastConditionalSync;
QElapsedTimer lastConditionalSync;
QTimer *nextConditionalSync;
bool copyEngineIsSync;
bool canceled;//to not try groun when is in canceling
Expand Down
4 changes: 2 additions & 2 deletions DebugEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <string>
#include <QFile>
#include <QMutex>
#include <QTime>
#include <QTimer>
#include <QElapsedTimer>
#include <QList>
#include <QCoreApplication>
#include <QAbstractTableModel>
Expand Down Expand Up @@ -110,7 +110,7 @@ class DebugEngine : public QObject
QMutex mutex;
QMutex mutexList;
/// \brief For record the start time
QTime startTime;
QElapsedTimer startTime;
/// \brief String for the end of log file
std::string endOfLogFile;
/// \brief Drop the html entities
Expand Down
2 changes: 1 addition & 1 deletion LocalListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void LocalListener::newConnexion()
ComposedData newClient;
newClient.socket = localServer.nextPendingConnection();
#ifdef ULTRACOPIER_DEBUG
connect(newClient.socket, static_cast<void(QLocalSocket::*)(QLocalSocket::LocalSocketError)>(&QLocalSocket::error), this, &LocalListener::error);
connect(newClient.socket, static_cast<void(QLocalSocket::*)(QLocalSocket::LocalSocketError)>(&QLocalSocket::errorOccurred), this, &LocalListener::error);
//connect(newClient.socket, &QLocalSocket::error, this, &LocalListener::error);
//connect(newClient.socket, SIGNAL(error(QLocalSocket::LocalSocketError)), this, SLOT(error(QLocalSocket::LocalSocketError)));
#endif
Expand Down
4 changes: 2 additions & 2 deletions Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define VERSIONUC_H

/// \brief the version
#define ULTRACOPIER_VERSION "2.2.4.14"
#define ULTRACOPIER_VERSION "2.2.5.0"
/// \brief the windows version
#define ULTRACOPIER_WINDOWS_VERSION 2,2,4,14
#define ULTRACOPIER_WINDOWS_VERSION 2,2,5,0

#endif // VARIABLE_H
1 change: 1 addition & 0 deletions plugins/CopyEngine/Ultracopier-Spec/FolderExistsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "TransferThread.h"
#include "../../../cpp11addition.h"
#include <cstring>
#include <QDateTime>

#ifdef Q_OS_WIN32
#define CURRENTSEPARATOR "\\"
Expand Down
4 changes: 2 additions & 2 deletions plugins/CopyEngine/Ultracopier-Spec/TransferThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\licence GPL3, see the file COPYING */

#include <QObject>
#include <QTime>
#include <QElapsedTimer>
#include <QThread>

#include <regex>
Expand Down Expand Up @@ -263,7 +263,7 @@ public slots:
//different post-operation
bool doFilePostOperation();
protected:
QTime startTransferTime;
QElapsedTimer startTransferTime;
bool haveTransferTime;
};

Expand Down
Loading

0 comments on commit 47c5999

Please sign in to comment.