Merge pull request #999 from kiwix/const-abi

This commit is contained in:
Matthieu Gautier 2023-09-14 13:42:43 +02:00 committed by GitHub
commit 45b3cfca16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ class Downloader
/**
* Get the ids of the managed downloads.
*/
std::vector<std::string> getDownloadIds() const;
std::vector<std::string> getDownloadIds();
private:
mutable std::mutex m_lock;

View File

@ -157,7 +157,7 @@ void Downloader::close()
mp_aria->close();
}
std::vector<std::string> Downloader::getDownloadIds() const {
std::vector<std::string> Downloader::getDownloadIds() {
std::unique_lock<std::mutex> lock(m_lock);
std::vector<std::string> ret;
for(auto& p:m_knownDownloads) {