mtp: Address clang compilation errors
* Move default value of debug_enabled to declaration * Set more-correct fake values for MtpProperty sets Change-Id: Ife3c15ac6c908848c16a609e8e505336e53c19d8
This commit is contained in:
@@ -836,8 +836,8 @@ MtpProperty* MyMtpDatabase::getDevicePropertyDesc(MtpDeviceProperty property) {
|
||||
|
||||
// get current value
|
||||
// TODO: add actual values
|
||||
result->setCurrentValue('\0');
|
||||
result->setDefaultValue('\0');
|
||||
result->setCurrentValue(0);
|
||||
result->setDefaultValue(0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
#endif //def TWRPMTP
|
||||
|
||||
twrpMtp::twrpMtp(int debug_enabled = 0) {
|
||||
twrpMtp::twrpMtp(int debug_enabled) {
|
||||
if (debug_enabled)
|
||||
MtpDebug::enableDebug();
|
||||
mtpstorages = new storages;
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
|
||||
class twrpMtp {
|
||||
public:
|
||||
twrpMtp(int debug_enabled /* = 0 */);
|
||||
twrpMtp(int debug_enabled = 0);
|
||||
pthread_t threadserver(void);
|
||||
pid_t forkserver(int mtppipe[2]);
|
||||
void addStorage(std::string display, std::string path, int mtpid, uint64_t maxFileSize);
|
||||
|
||||
Reference in New Issue
Block a user