Kaydet (Commit) cdd4b528 authored tarafından Noel Grandin's avatar Noel Grandin

use rtl::Reference in SwChartDataSequence

instead of manual acquire/release

Change-Id: I2d827b2f785b34b77adb95ac62afb885bb423879
Reviewed-on: https://gerrit.libreoffice.org/43478Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 73ade0b0
......@@ -1860,7 +1860,7 @@ SwChartDataSequence::SwChartDataSequence(
{
m_bDisposed = false;
acquire();
rtl::Reference<SwChartDataSequence> aSelfHold(this);
try
{
const SwTable* pTable = SwTable::FindTable( &rTableFormat );
......@@ -1876,13 +1876,11 @@ SwChartDataSequence::SwChartDataSequence(
}
catch (uno::RuntimeException &)
{
// TODO: shouldn't there be a call to release() here?
throw;
}
catch (uno::Exception &)
{
}
release();
#if OSL_DEBUG_LEVEL > 0
// check if it can properly convert into a SwUnoTableCursor
......@@ -1906,7 +1904,7 @@ SwChartDataSequence::SwChartDataSequence( const SwChartDataSequence &rObj ) :
{
m_bDisposed = false;
acquire();
rtl::Reference<SwChartDataSequence> aSelfHold(this);
try
{
const SwTable* pTable = SwTable::FindTable( GetFrameFormat() );
......@@ -1922,13 +1920,11 @@ SwChartDataSequence::SwChartDataSequence( const SwChartDataSequence &rObj ) :
}
catch (uno::RuntimeException &)
{
// TODO: shouldn't there be a call to release() here?
throw;
}
catch (uno::Exception &)
{
}
release();
#if OSL_DEBUG_LEVEL > 0
// check if it can properly convert into a SwUnoTableCursor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment