summaryrefslogtreecommitdiff
path: root/fpicker/source/aqua/resourceprovider.mm
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/aqua/resourceprovider.mm')
-rw-r--r--fpicker/source/aqua/resourceprovider.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/fpicker/source/aqua/resourceprovider.mm b/fpicker/source/aqua/resourceprovider.mm
index 51453e986a77..f1c9023a1cfd 100644
--- a/fpicker/source/aqua/resourceprovider.mm
+++ b/fpicker/source/aqua/resourceprovider.mm
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <osl/mutex.hxx>
@@ -155,14 +158,12 @@ public:
};
CResourceProvider::CResourceProvider( ) :
- m_pImpl( new CResourceProvider_Impl() )
+ m_pImpl( o3tl::make_unique<CResourceProvider_Impl>() )
{
}
CResourceProvider::~CResourceProvider( )
-{
- delete m_pImpl;
-}
+{}
NSString* CResourceProvider::getResString( sal_Int32 aId )
{