summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-11 16:15:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-11 16:15:53 +0100
commit576c7562ecf3d6d707c78d80852907c4a014178f (patch)
treea417d5d4b541b77833083472bc492ae94f12c99b /chart2
parent1e0e115d47e5874414ab511de8671d5bc466812c (diff)
Return std::unique_ptr from svt::AcceleratorExecute::createAcceleratorHelper
...to prevent errors like 5ac6e00274e732435b55c2908db9cea658fe549b "Memory leak" Change-Id: I3e20393af628849d8a387b491b75e1aacdea982a
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 1b4dd62efc09..eb438f85a585 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1252,7 +1252,7 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt )
// handle accelerators
if( ! m_apAccelExecute.get() && m_xFrame.is() && m_xCC.is() )
{
- m_apAccelExecute.reset( ::svt::AcceleratorExecute::createAcceleratorHelper());
+ m_apAccelExecute = ::svt::AcceleratorExecute::createAcceleratorHelper();
OSL_ASSERT( m_apAccelExecute.get());
if( m_apAccelExecute.get() )
m_apAccelExecute->init( m_xCC, m_xFrame );