Skip to content
  • 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
         {
    
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment