forked from qt-creator/qt-creator
Android: Fix UNINIT_CTOR and PASS_BY_VALUE issues
Change-Id: Ie77e69226769d9ea0440611f2f5985c5ec08beaa Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -71,7 +71,7 @@ const int avdCreateTimeoutMs = 30000;
|
|||||||
\c true if the command is successfully executed. Output is copied into \a output. The function
|
\c true if the command is successfully executed. Output is copied into \a output. The function
|
||||||
blocks the calling thread.
|
blocks the calling thread.
|
||||||
*/
|
*/
|
||||||
bool AndroidAvdManager::avdManagerCommand(const AndroidConfig config, const QStringList &args, QString *output)
|
bool AndroidAvdManager::avdManagerCommand(const AndroidConfig &config, const QStringList &args, QString *output)
|
||||||
{
|
{
|
||||||
CommandLine cmd(config.avdManagerToolPath(), args);
|
CommandLine cmd(config.avdManagerToolPath(), args);
|
||||||
Utils::SynchronousProcess proc;
|
Utils::SynchronousProcess proc;
|
||||||
@@ -112,7 +112,7 @@ static bool checkForTimeout(const chrono::steady_clock::time_point &start,
|
|||||||
return timedOut;
|
return timedOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CreateAvdInfo createAvdCommand(const AndroidConfig config, const CreateAvdInfo &info)
|
static CreateAvdInfo createAvdCommand(const AndroidConfig &config, const CreateAvdInfo &info)
|
||||||
{
|
{
|
||||||
CreateAvdInfo result = info;
|
CreateAvdInfo result = info;
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ public:
|
|||||||
QString waitForAvd(const QString &avdName,
|
QString waitForAvd(const QString &avdName,
|
||||||
const std::function<bool()> &cancelChecker = {}) const;
|
const std::function<bool()> &cancelChecker = {}) const;
|
||||||
bool isAvdBooted(const QString &device) const;
|
bool isAvdBooted(const QString &device) const;
|
||||||
static bool avdManagerCommand(const AndroidConfig config,
|
static bool avdManagerCommand(const AndroidConfig &config,
|
||||||
const QStringList &args,
|
const QStringList &args,
|
||||||
QString *output);
|
QString *output);
|
||||||
|
|
||||||
|
@@ -65,9 +65,9 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
QNetworkAccessManager m_manager;
|
QNetworkAccessManager m_manager;
|
||||||
QNetworkReply *m_reply;
|
QNetworkReply *m_reply = nullptr;
|
||||||
QString m_sdkFilename;
|
QString m_sdkFilename;
|
||||||
QProgressDialog *m_progressDialog;
|
QProgressDialog *m_progressDialog = nullptr;
|
||||||
QUrl m_sdkUrl;
|
QUrl m_sdkUrl;
|
||||||
QByteArray m_sha256;
|
QByteArray m_sha256;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user