From e83b521ee0de2a9ff4f59cb1f21599205ae07546 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 1 Nov 2024 23:23:46 +0100 Subject: [PATCH] Add const --- src/device/gpoddevice.h | 2 +- src/device/mtpdevice.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/gpoddevice.h b/src/device/gpoddevice.h index 719b69808..a7486292c 100644 --- a/src/device/gpoddevice.h +++ b/src/device/gpoddevice.h @@ -100,7 +100,7 @@ class GPodDevice : public ConnectedDevice, public virtual MusicStorage { bool WriteDatabase(QString &error_text); protected: - SharedPtr task_manager_; + const SharedPtr task_manager_; GPodLoader *loader_; QThread *loader_thread_; diff --git a/src/device/mtpdevice.h b/src/device/mtpdevice.h index 451e6473a..75379c174 100644 --- a/src/device/mtpdevice.h +++ b/src/device/mtpdevice.h @@ -96,7 +96,7 @@ class MtpDevice : public ConnectedDevice { private: static bool sInitializedLibMTP; - SharedPtr task_manager_; + const SharedPtr task_manager_; MtpLoader *loader_; QThread *loader_thread_;