summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
parent1e0e115d47e5874414ab511de8671d5bc466812c (diff)
Return std::unique_ptr from svt::AcceleratorExecute::createAcceleratorHelper
...to prevent errors like 5ac6e00274e732435b55c2908db9cea658fe549b "Memory leak" Change-Id: I3e20393af628849d8a387b491b75e1aacdea982a
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/dataview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx
index a722433db8d8..75246659c940 100644
--- a/dbaccess/source/ui/browser/dataview.cxx
+++ b/dbaccess/source/ui/browser/dataview.cxx
@@ -47,7 +47,7 @@ namespace dbaui
,m_xController( &_rController )
,m_aSeparator( VclPtr<FixedLine>::Create(this) )
{
- m_pAccel.reset(::svt::AcceleratorExecute::createAcceleratorHelper());
+ m_pAccel = ::svt::AcceleratorExecute::createAcceleratorHelper();
m_aSeparator->Show();
}