Formatting
This commit is contained in:
@@ -138,4 +138,3 @@ void CDDADevice::SongLoadingFinished() {
|
||||
WatchForDiscChanges(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -227,13 +227,12 @@ void DeviceDatabaseBackend::SetDeviceOptions(const int id, const QString &friend
|
||||
QSqlDatabase db(db_->Connect());
|
||||
|
||||
SqlQuery q(db);
|
||||
q.prepare(QStringLiteral(
|
||||
"UPDATE devices"
|
||||
" SET friendly_name=:friendly_name,"
|
||||
" icon=:icon_name,"
|
||||
" transcode_mode=:transcode_mode,"
|
||||
" transcode_format=:transcode_format"
|
||||
" WHERE ROWID=:id"));
|
||||
q.prepare(QStringLiteral("UPDATE devices"
|
||||
" SET friendly_name=:friendly_name,"
|
||||
" icon=:icon_name,"
|
||||
" transcode_mode=:transcode_mode,"
|
||||
" transcode_format=:transcode_format"
|
||||
" WHERE ROWID=:id"));
|
||||
q.BindValue(u":friendly_name"_s, friendly_name);
|
||||
q.BindValue(u":icon_name"_s, icon_name);
|
||||
q.BindValue(u":transcode_mode"_s, static_cast<int>(mode));
|
||||
|
||||
@@ -100,7 +100,7 @@ class GPodDevice : public ConnectedDevice, public virtual MusicStorage {
|
||||
bool WriteDatabase(QString &error_text);
|
||||
|
||||
protected:
|
||||
const SharedPtr <TaskManager> task_manager_;
|
||||
const SharedPtr<TaskManager> task_manager_;
|
||||
GPodLoader *loader_;
|
||||
QThread *loader_thread_;
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ MtpConnection::~MtpConnection() {
|
||||
|
||||
QString MtpConnection::ErrorString(const LIBMTP_error_number_t error_number) {
|
||||
|
||||
switch(error_number) {
|
||||
switch (error_number) {
|
||||
case LIBMTP_ERROR_NO_DEVICE_ATTACHED:
|
||||
return u"No Devices have been found."_s;
|
||||
case LIBMTP_ERROR_CONNECTING:
|
||||
|
||||
@@ -411,10 +411,7 @@ Udisks2Lister::PartitionData Udisks2Lister::ReadPartitionData(const QDBusObjectP
|
||||
}
|
||||
|
||||
QString Udisks2Lister::PartitionData::unique_id() const {
|
||||
return u"Udisks2/%1/%2/%3/%4/%5"_s
|
||||
.arg(serial, vendor, model)
|
||||
.arg(capacity)
|
||||
.arg(uuid);
|
||||
return u"Udisks2/%1/%2/%3/%4/%5"_s.arg(serial, vendor, model).arg(capacity).arg(uuid);
|
||||
}
|
||||
|
||||
Udisks2Lister::Udisks2Job::Udisks2Job() : is_mount(true) {}
|
||||
|
||||
Reference in New Issue
Block a user