diff options
Diffstat (limited to 'utils/rbutilqt/base/autodetection.cpp')
-rw-r--r-- | utils/rbutilqt/base/autodetection.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/rbutilqt/base/autodetection.cpp b/utils/rbutilqt/base/autodetection.cpp index 341f219c30..5021e1b3cc 100644 --- a/utils/rbutilqt/base/autodetection.cpp +++ b/utils/rbutilqt/base/autodetection.cpp | |||
@@ -92,7 +92,8 @@ void Autodetection::detectUsb() | |||
92 | 92 | ||
93 | int i = attached.size(); | 93 | int i = attached.size(); |
94 | while(i--) { | 94 | while(i--) { |
95 | QStringList a = PlayerBuildInfo::instance()->value(PlayerBuildInfo::UsbIdTargetList, attached.at(i)).toStringList(); | 95 | QStringList a = PlayerBuildInfo::instance()->value( |
96 | PlayerBuildInfo::UsbIdTargetList, attached.at(i)).toStringList(); | ||
96 | if(a.size() > 0) { | 97 | if(a.size() > 0) { |
97 | struct Detected d; | 98 | struct Detected d; |
98 | d.status = PlayerOk; | 99 | d.status = PlayerOk; |
@@ -100,7 +101,8 @@ void Autodetection::detectUsb() | |||
100 | m_detected.append(d); | 101 | m_detected.append(d); |
101 | LOG_INFO() << "[USB] detected supported player" << d.usbdevices; | 102 | LOG_INFO() << "[USB] detected supported player" << d.usbdevices; |
102 | } | 103 | } |
103 | QStringList b = PlayerBuildInfo::instance()->value(PlayerBuildInfo::UsbIdErrorList, attached.at(i)).toStringList(); | 104 | QStringList b = PlayerBuildInfo::instance()->value( |
105 | PlayerBuildInfo::UsbIdErrorList, attached.at(i)).toStringList(); | ||
104 | if(b.size() > 0) { | 106 | if(b.size() > 0) { |
105 | struct Detected d; | 107 | struct Detected d; |
106 | d.status = PlayerMtpMode; | 108 | d.status = PlayerMtpMode; |
@@ -310,7 +312,7 @@ void Autodetection::mergePatcher(void) | |||
310 | } | 312 | } |
311 | 313 | ||
312 | 314 | ||
313 | QString Autodetection::detectAjbrec(QString root) | 315 | QString Autodetection::detectAjbrec(const QString& root) |
314 | { | 316 | { |
315 | QFile f(root + "/ajbrec.ajz"); | 317 | QFile f(root + "/ajbrec.ajz"); |
316 | char header[24]; | 318 | char header[24]; |
@@ -347,7 +349,7 @@ QString Autodetection::detectAjbrec(QString root) | |||
347 | } | 349 | } |
348 | 350 | ||
349 | 351 | ||
350 | int Autodetection::findDetectedDevice(QString device) | 352 | int Autodetection::findDetectedDevice(const QString& device) |
351 | { | 353 | { |
352 | int i = m_detected.size(); | 354 | int i = m_detected.size(); |
353 | while(i--) { | 355 | while(i--) { |