Rename initialise to initialize
This commit is contained in:
@@ -40,7 +40,7 @@ class DeviceLister : public QObject {
|
||||
DeviceLister();
|
||||
~DeviceLister() override;
|
||||
|
||||
// Tries to start the thread and initialise the engine. This object will be moved to the new thread.
|
||||
// Tries to start the thread and initialize the engine. This object will be moved to the new thread.
|
||||
void Start();
|
||||
virtual void ExitAsync();
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
class DeviceLister;
|
||||
class DeviceManager;
|
||||
|
||||
bool MtpDevice::sInitialisedLibMTP = false;
|
||||
bool MtpDevice::sInitializedLibMTP = false;
|
||||
|
||||
MtpDevice::MtpDevice(const QUrl &url, DeviceLister *lister, const QString &unique_id, DeviceManager *manager, Application *app, int database_id, bool first_time)
|
||||
: ConnectedDevice(url, lister, unique_id, manager, app, database_id, first_time),
|
||||
@@ -55,9 +55,9 @@ MtpDevice::MtpDevice(const QUrl &url, DeviceLister *lister, const QString &uniqu
|
||||
loader_thread_(nullptr),
|
||||
closing_(false) {
|
||||
|
||||
if (!sInitialisedLibMTP) {
|
||||
if (!sInitializedLibMTP) {
|
||||
LIBMTP_Init();
|
||||
sInitialisedLibMTP = true;
|
||||
sInitializedLibMTP = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class MtpDevice : public ConnectedDevice {
|
||||
int GetCapacity(LIBMTP_mtpdevice_struct* device);
|
||||
|
||||
private:
|
||||
static bool sInitialisedLibMTP;
|
||||
static bool sInitializedLibMTP;
|
||||
|
||||
MtpLoader *loader_;
|
||||
QThread *loader_thread_;
|
||||
|
||||
Reference in New Issue
Block a user