[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - accessibility/source sc/source

Noel Grandin noel at peralex.com
Thu May 19 13:11:48 UTC 2016


 accessibility/source/extended/accessiblelistboxentry.cxx |    2 +-
 sc/source/core/data/column.cxx                           |    2 +-
 sc/source/core/data/formulacell.cxx                      |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 37dc53598044ece853c16637f4e73e575132be5a
Author: Noel Grandin <noel at peralex.com>
Date:   Mon May 16 08:44:45 2016 +0200

    clang-tidy misc-unused-raii
    
    Change-Id: Id97291511efbaa304f25da3ae5700604b574d165
    Reviewed-on: https://gerrit.libreoffice.org/25027
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>
    (cherry picked from commit a656be64e21fd0ec5e12d34a47e2daf777e04b9b)
    Reviewed-on: https://gerrit.libreoffice.org/25162
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index f49fc0e..2699384 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -233,7 +233,7 @@ namespace accessibility
 
     void SAL_CALL AccessibleListBoxEntry::disposing()
     {
-        SolarMutexGuard();
+        SolarMutexGuard aSolarGuard;
         ::osl::MutexGuard aGuard( m_aMutex );
 
         Reference< XAccessible > xKeepAlive( this );
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 4a5f266..5f562ca 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2171,7 +2171,7 @@ class UpdateRefOnNonCopy : std::unary_function<sc::FormulaGroupEntry, void>
 
         if (aRes.mbReferenceModified || aRes.mbNameModified || bRecalcOnMove)
         {
-            sc::AutoCalcSwitch(mpCxt->mrDoc, false);
+            sc::AutoCalcSwitch aACSwitch(mpCxt->mrDoc, false);
 
             if (aRes.mbNameModified)
                 recompileTokenArray(*pTop);
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index eb24423..daf8f65 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3262,7 +3262,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
 
     if (bNeedDirty)
     {   // Cut off references, invalid or similar?
-        sc::AutoCalcSwitch(*pDocument, false);
+        sc::AutoCalcSwitch aACSwitch(*pDocument, false);
         SetDirty();
     }
 
@@ -3322,7 +3322,7 @@ bool ScFormulaCell::UpdateReferenceOnCopy(
 
     if (bNeedDirty)
     {   // Cut off references, invalid or similar?
-        sc::AutoCalcSwitch(*pDocument, false);
+        sc::AutoCalcSwitch aACSwitch(*pDocument, false);
         SetDirty();
     }
 


More information about the Libreoffice-commits mailing list