[Libreoffice-commits] core.git: sw/qa

Tor Lillqvist tml at collabora.com
Mon Sep 11 14:37:53 UTC 2017


 sw/qa/core/uwriter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0eae830ca1f12691c73e7e13c8efe08d23506304
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Sep 11 17:37:11 2017 +0300

    loplugin:unusedvariablecheck
    
    Change-Id: Iaeed1da4ec76075271b48147e3f9372d966e6f99

diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index d619d94282a0..76dbb783faf3 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1269,7 +1269,6 @@ void SwDocTest::testTableAutoFormats()
     SfxInt32Item aRAngle = aBoxAF.m_aRotateAngle;
     //Set m_aRotateMode
     aBoxAF.m_aRotateMode.SetValue( SVX_ROTATE_MODE_CENTER );
-    SvxRotateModeItem aRMode = aBoxAF.m_aRotateMode;
     //Set m_sNumFormatString
     OUString aNFString = "UnitTestFormat";
     aBoxAF.m_sNumFormatString = aNFString;
@@ -1414,6 +1413,7 @@ void SwDocTest::testTableAutoFormats()
     CPPUNIT_ASSERT( bool( pLoadAF->GetBoxFormat(0).m_aRotateAngle == aRAngle ) );
 #if !(defined(__clang__) && __clang_major__ == 4 && __clang_minor__ == 0) // Temporary fix for mysterious problem with Clang on F26
     //Get m_aRotateMode
+    SvxRotateModeItem aRMode = aBoxAF.m_aRotateMode;
     CPPUNIT_ASSERT( bool( pLoadAF->GetBoxFormat(0).m_aRotateMode == aRMode ) );
 #endif
     //Get m_sNumFormatString


More information about the Libreoffice-commits mailing list