diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-11 16:15:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-11 16:15:53 +0100 |
commit | 576c7562ecf3d6d707c78d80852907c4a014178f (patch) | |
tree | a417d5d4b541b77833083472bc492ae94f12c99b /include | |
parent | 1e0e115d47e5874414ab511de8671d5bc466812c (diff) |
Return std::unique_ptr from svt::AcceleratorExecute::createAcceleratorHelper
...to prevent errors like 5ac6e00274e732435b55c2908db9cea658fe549b "Memory leak"
Change-Id: I3e20393af628849d8a387b491b75e1aacdea982a
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/acceleratorexecute.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svtools/acceleratorexecute.hxx b/include/svtools/acceleratorexecute.hxx index 8736506eaaf4..b2ec4a04edeb 100644 --- a/include/svtools/acceleratorexecute.hxx +++ b/include/svtools/acceleratorexecute.hxx @@ -22,6 +22,7 @@ #include <svtools/svtdllapi.h> +#include <memory> #include <vector> #include <com/sun/star/uno/XComponentContext.hpp> @@ -114,7 +115,7 @@ class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit environment will be recognized ... The helper stop its work immediately then! */ - static AcceleratorExecute* createAcceleratorHelper(); + static std::unique_ptr<AcceleratorExecute> createAcceleratorHelper(); /** @short fight against inlining ... */ |