clang-tidy misc-unused-raii

Change-Id: Id97291511efbaa304f25da3ae5700604b574d165
Reviewed-on: https://gerrit.libreoffice.org/25027
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
Noel Grandin
2016-05-16 08:44:45 +02:00
committed by Eike Rathke
parent 874431bcd1
commit a656be64e2
3 changed files with 4 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ namespace accessibility
void SAL_CALL AccessibleListBoxEntry::disposing()
{
SolarMutexGuard();
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
Reference< XAccessible > xKeepAlive( this );

View File

@@ -2173,7 +2173,7 @@ class UpdateRefOnNonCopy : public std::unary_function<sc::FormulaGroupEntry, voi
if (aRes.mbReferenceModified || aRes.mbNameModified || bRecalcOnMove)
{
sc::AutoCalcSwitch(mpCxt->mrDoc, false);
sc::AutoCalcSwitch aACSwitch(mpCxt->mrDoc, false);
if (aRes.mbNameModified)
recompileTokenArray(*pTop);

View File

@@ -3225,7 +3225,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
if (bNeedDirty)
{ // Cut off references, invalid or similar?
sc::AutoCalcSwitch(*pDocument, false);
sc::AutoCalcSwitch aACSwitch(*pDocument, false);
SetDirty();
}
@@ -3285,7 +3285,7 @@ bool ScFormulaCell::UpdateReferenceOnCopy(
if (bNeedDirty)
{ // Cut off references, invalid or similar?
sc::AutoCalcSwitch(*pDocument, false);
sc::AutoCalcSwitch aACSwitch(*pDocument, false);
SetDirty();
}