-
diff --git a/libs/flake/text/KoFontLibraryResourceUtils.h b/libs/flake/text/KoFontLibraryResourceUtils.h index ae70d37de8..8525b9e7f9 100644 --- a/libs/flake/text/KoFontLibraryResourceUtils.h +++ b/libs/flake/text/KoFontLibraryResourceUtils.h @@ -47,7 +47,13 @@ public: } using QSharedPointer<T>::operator->; - using QSharedPointer<T>::reset; + void reset(T *ptr) { + QSharedPointer<T>::reset(ptr, deleter<T, P>); + } + void reset() { + QSharedPointer<T>::reset(); + } + auto data() const { @@ -74,7 +80,13 @@ public: } using QSharedPointer<T>::operator->; - using QSharedPointer<T>::reset; + void reset(T *ptr) { + QSharedPointer<T>::reset(ptr, P); + } + void reset() { + QSharedPointer<T>::reset(); + } + auto data() const {
Please register or sign in to comment