Skip to content
Snippets Groups Projects
Commit f5095bdf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

AndroidMediaLibrary: Avoid copying some parameters

parent 04696701
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ AndroidMediaLibrary::initML(const std::string& dbPath, const std::string& thumbs
}
void
AndroidMediaLibrary::addDevice(std::string uuid, std::string path, bool removable)
AndroidMediaLibrary::addDevice(const std::string& uuid, const std::string& path, bool removable)
{
p_lister->addDevice(uuid, path, removable);
p_DeviceListerCb->onDevicePlugged(uuid, path);
......@@ -75,7 +75,7 @@ AndroidMediaLibrary::devices()
}
bool
AndroidMediaLibrary::removeDevice(std::string uuid)
AndroidMediaLibrary::removeDevice(const std::string& uuid)
{
bool removed = p_lister->removeDevice(uuid);
if (removed)
......
......@@ -30,9 +30,9 @@ public:
~AndroidMediaLibrary();
void initML(const std::string& dbPath, const std::string& thumbsPath);
void addDevice(std::string uuid, std::string path, bool removable);
void addDevice(const std::string& uuid, const std::string& path, bool removable);
std::vector<std::tuple<std::string, std::string, bool>> devices();
bool removeDevice(std::string uuid);
bool removeDevice(const std::string& uuid);
void banFolder(const std::string& path);
void discover(const std::string&);
void removeEntryPoint(const std::string& entryPoint);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment