Commit 2d6d1258 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning found by cppcheck

parent ae8cd9e3
......@@ -33,7 +33,7 @@ using namespace KDAV;
class DavItemsListJobPrivate {
public:
DavItemsListJobPrivate(const DavUrl &url, std::shared_ptr<EtagCache> cache);
DavItemsListJobPrivate(const DavUrl &url, const std::shared_ptr<EtagCache> &cache);
DavUrl mUrl;
std::shared_ptr<EtagCache> mEtagCache;
......@@ -47,7 +47,7 @@ public:
uint mSubJobCount;
};
DavItemsListJobPrivate::DavItemsListJobPrivate(const DavUrl &url, std::shared_ptr<EtagCache> cache)
DavItemsListJobPrivate::DavItemsListJobPrivate(const DavUrl &url, const std::shared_ptr<EtagCache> &cache)
: mUrl(url)
, mEtagCache(cache)
, mSubJobCount(0)
......@@ -55,7 +55,7 @@ DavItemsListJobPrivate::DavItemsListJobPrivate(const DavUrl &url, std::shared_pt
}
DavItemsListJob::DavItemsListJob(const DavUrl &url, std::shared_ptr<EtagCache> cache, QObject *parent)
DavItemsListJob::DavItemsListJob(const DavUrl &url, const std::shared_ptr<EtagCache> &cache, QObject *parent)
: DavJobBase(parent)
, d(std::unique_ptr<DavItemsListJobPrivate>(new DavItemsListJobPrivate(url, cache)))
{
......
......@@ -51,7 +51,7 @@ public:
* @param url The url of the DAV collection.
* @param parent The parent object.
*/
DavItemsListJob(const DavUrl &url, std::shared_ptr<EtagCache> cache, QObject *parent = nullptr);
DavItemsListJob(const DavUrl &url, const std::shared_ptr<EtagCache> &cache, QObject *parent = nullptr);
~DavItemsListJob();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment