diff --git a/compilerplugins/clang/test/vclwidgets.cxx b/compilerplugins/clang/test/vclwidgets.cxx index c18c775c054a..d7926c0c4e98 100644 --- a/compilerplugins/clang/test/vclwidgets.cxx +++ b/compilerplugins/clang/test/vclwidgets.cxx @@ -8,6 +8,8 @@ */ #include + +#include #include struct Widget : public VclReferenceBase diff --git a/include/vcl/abstdlg.hxx b/include/vcl/abstdlg.hxx index c173326706c8..5303165f2e9b 100644 --- a/include/vcl/abstdlg.hxx +++ b/include/vcl/abstdlg.hxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include diff --git a/include/vcl/vclreferencebase.hxx b/include/vcl/vclreferencebase.hxx index dbd3bc9ae1ae..ce3e973dac8c 100644 --- a/include/vcl/vclreferencebase.hxx +++ b/include/vcl/vclreferencebase.hxx @@ -20,8 +20,8 @@ #define INCLUDED_VCL_Reference_HXX #include -#include #include + #include class VclReferenceBase; @@ -30,8 +30,7 @@ class VCL_DLLPUBLIC VclReferenceBase { mutable int mnRefCnt; - template friend class ::rtl::Reference; - template friend class ::VclPtr; + template friend class VclPtr; public: inline void acquire() const