summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-04 20:06:25 +0200
committerMax Kellermann <max@musicpd.org>2020-03-26 17:18:27 +0100
commit1de3ac6c78f2ff1b99e59c94a4ed016aa6718fb1 (patch)
tree4e1a8d86b1cdb396b8bf0cb141288122e41ce298
parentabe06a5fa6a7092a772cc372a054ba1f53c5616d (diff)
lib/curl/Init: add `const` overloads
-rw-r--r--src/lib/curl/Init.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/curl/Init.hxx b/src/lib/curl/Init.hxx
index d19655a31..4256f2603 100644
--- a/src/lib/curl/Init.hxx
+++ b/src/lib/curl/Init.hxx
@@ -54,9 +54,17 @@ public:
return *instance;
}
+ const CurlGlobal &operator*() const noexcept {
+ return *instance;
+ }
+
CurlGlobal *operator->() noexcept {
return instance;
}
+
+ const CurlGlobal *operator->() const noexcept {
+ return instance;
+ }
};
#endif