mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00
Merge pull request #999 from kiwix/const-abi
This commit is contained in:
commit
45b3cfca16
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user