diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-20 10:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-21 08:32:47 +0200 |
commit | 5abc669599001bf888b97c4d3c2715e1fb7523b9 (patch) | |
tree | 2407c6fc040a795e6ffc69de02ba940285c04c7f /sc/qa/extras | |
parent | 5bb308a9ad16f6002486a60e4a753693818580b6 (diff) |
new plugin stylepolice
check for local variables which follow our member field naming
convention, which is highly confusing
Change-Id: Idacedf7145d09843e96a584237b385f7662eea10
Diffstat (limited to 'sc/qa/extras')
-rw-r--r-- | sc/qa/extras/check_data_pilot_field.cxx | 4 | ||||
-rw-r--r-- | sc/qa/extras/check_data_pilot_table.cxx | 4 | ||||
-rw-r--r-- | sc/qa/extras/check_xcell_ranges_query.cxx | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sc/qa/extras/check_data_pilot_field.cxx b/sc/qa/extras/check_data_pilot_field.cxx index 3ff8c65e9bf7..24c7ffb90f9a 100644 --- a/sc/qa/extras/check_data_pilot_field.cxx +++ b/sc/qa/extras/check_data_pilot_field.cxx @@ -168,8 +168,8 @@ uno::Reference< uno::XInterface > CheckDataPilotField::init() uno::Reference< container::XIndexAccess > IA = DPDsc->getDataPilotFields(); uno::Reference<uno::XInterface> xDataPilotFieldObject; - uno::Any mAny = IA->getByIndex(0); - CPPUNIT_ASSERT(mAny >>= xDataPilotFieldObject); + data = IA->getByIndex(0); + CPPUNIT_ASSERT(data >>= xDataPilotFieldObject); mxObject = xDataPilotFieldObject; return xDataPilotFieldObject; diff --git a/sc/qa/extras/check_data_pilot_table.cxx b/sc/qa/extras/check_data_pilot_table.cxx index b5e786b8cfbc..11c3ee336eff 100644 --- a/sc/qa/extras/check_data_pilot_table.cxx +++ b/sc/qa/extras/check_data_pilot_table.cxx @@ -166,8 +166,8 @@ uno::Reference< uno::XInterface > CheckDataPilotTable::init() DPT->insertNewByName("DataPilotTable", sCellAdress, DPDsc); uno::Reference<uno::XInterface> xDataPilotTableObject; - uno::Any mAny = DPT->getByName( DPT->getElementNames()[0] ); - CPPUNIT_ASSERT(mAny >>= xDataPilotTableObject); + data = DPT->getByName( DPT->getElementNames()[0] ); + CPPUNIT_ASSERT(data >>= xDataPilotTableObject); mxObject = xDataPilotTableObject; return xDataPilotTableObject; diff --git a/sc/qa/extras/check_xcell_ranges_query.cxx b/sc/qa/extras/check_xcell_ranges_query.cxx index 77c0bb63e5f4..ad8f0b0cc31f 100644 --- a/sc/qa/extras/check_xcell_ranges_query.cxx +++ b/sc/qa/extras/check_xcell_ranges_query.cxx @@ -64,11 +64,11 @@ uno::Reference< uno::XInterface > CheckXCellRangesQuery::init() // Load an empty document. mxComponent = loadFromDesktop("private:factory/scalc"); - uno::Reference< sheet::XSpreadsheetDocument > m_xSheetDoc(mxComponent, uno::UNO_QUERY_THROW); - CPPUNIT_ASSERT_MESSAGE("no calc document!", m_xSheetDoc.is()); + uno::Reference< sheet::XSpreadsheetDocument > xSheetDoc(mxComponent, uno::UNO_QUERY_THROW); + CPPUNIT_ASSERT_MESSAGE("no calc document!", xSheetDoc.is()); // Getting spreadsheet - uno::Reference< sheet::XSpreadsheets > oSheets = m_xSheetDoc->getSheets(); + uno::Reference< sheet::XSpreadsheets > oSheets = xSheetDoc->getSheets(); uno::Reference< container::XIndexAccess > oIndexSheets(oSheets, uno::UNO_QUERY_THROW); uno::Any aAny = oIndexSheets->getByIndex(0); uno::Reference<container::XNamed> xNamed; @@ -118,9 +118,9 @@ void CheckXCellRangesQuery::checkEmptyCell() void CheckXCellRangesQuery::checkFilledCell() { - uno::Reference< sheet::XSpreadsheet > m_xSpreadSheet(init(), uno::UNO_QUERY_THROW); + uno::Reference< sheet::XSpreadsheet > xSpreadSheet(init(), uno::UNO_QUERY_THROW); // fill the cell with a value - m_xSpreadSheet->getCellByPosition(2, 3)->setValue(15); + xSpreadSheet->getCellByPosition(2, 3)->setValue(15); // compare an cell with value 5 with a cell with value 15 _queryColumnDifferences(sSheetName + ".C4"); |