Rename initialise to initialize

This commit is contained in:
Jonas Kvinge
2020-10-17 17:29:09 +02:00
parent 5b21118a8c
commit b6693a71f9
43 changed files with 114 additions and 117 deletions

View File

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

View File

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

View File

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