diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/errinf.hxx | 7 | ||||
-rw-r--r-- | include/tools/fract.hxx | 3 | ||||
-rw-r--r-- | include/tools/resary.hxx | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/include/tools/errinf.hxx b/include/tools/errinf.hxx index 950a65ec5ea9..28c1c260f18c 100644 --- a/include/tools/errinf.hxx +++ b/include/tools/errinf.hxx @@ -26,6 +26,7 @@ #include <rtl/ustring.hxx> #include <tools/errcode.hxx> #include <tools/toolsdllapi.h> +#include <memory> // FIXME: horrible legacy dependency on VCL from tools. namespace vcl { class Window; } @@ -54,7 +55,7 @@ class TOOLS_DLLPUBLIC DynamicErrorInfo : public ErrorInfo friend class EDcr_Impl; private: - EDcr_Impl* pImpl; + std::unique_ptr<EDcr_Impl> pImpl; public: @@ -117,7 +118,7 @@ class TOOLS_DLLPUBLIC ErrorContext friend class ErrorHandler; private: - ErrorContextImpl *pImpl; + std::unique_ptr<ErrorContextImpl> pImpl; public: ErrorContext(vcl::Window *pWin=nullptr); @@ -140,7 +141,7 @@ class TOOLS_DLLPUBLIC ErrorHandler friend class ErrHdl_Impl; private: - ErrHdl_Impl* pImpl; + std::unique_ptr<ErrHdl_Impl> pImpl; static sal_uInt16 HandleError_Impl( sal_uIntPtr lId, sal_uInt16 nFlags, diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx index 93663aca8ad2..efa7a17dc028 100644 --- a/include/tools/fract.hxx +++ b/include/tools/fract.hxx @@ -21,6 +21,7 @@ #include <sal/types.h> #include <tools/toolsdllapi.h> +#include <memory> class SvStream; @@ -30,7 +31,7 @@ class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Fraction { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; bool HasOverflowValue(); diff --git a/include/tools/resary.hxx b/include/tools/resary.hxx index 4e15feb5ee08..0cec8eb351b8 100644 --- a/include/tools/resary.hxx +++ b/include/tools/resary.hxx @@ -21,6 +21,7 @@ #include <tools/toolsdllapi.h> #include <rtl/ustring.hxx> +#include <memory> #define RESARRAY_INDEX_NOTFOUND (0xffffffff) @@ -29,7 +30,7 @@ class ResId; class TOOLS_DLLPUBLIC ResStringArray { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; ResStringArray( const ResStringArray& ) = delete; ResStringArray& operator=( const ResStringArray& ) = delete; |