summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
index 7547e35cb464..6bc31581fbe2 100644
--- a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
@@ -107,21 +107,21 @@ public class ScCellsEnumeration extends TestCase {
XEnumerationAccess oEnum = null;
// creation of testobject here
- XSpreadsheets oSheets = (XSpreadsheets)xSheetDoc.getSheets();
+ XSpreadsheets oSheets = xSheetDoc.getSheets();
XIndexAccess oIndexAccess = UnoRuntime.queryInterface(XIndexAccess.class, oSheets);
XCellRange oSheet = null;
try {
oSheet = (XCellRange) AnyConverter.toObject(
new Type(XCellRange.class),oIndexAccess.getByIndex(0));
- XCell oCell_1 = (XCell)oSheet.getCellByPosition(0, 0);
+ XCell oCell_1 = oSheet.getCellByPosition(0, 0);
XTextRange oTextRange = UnoRuntime.queryInterface(XTextRange.class, oCell_1);
oTextRange.setString("Test string 1");
- XCell oCell_2 = (XCell)oSheet.getCellByPosition(5, 1);
+ XCell oCell_2 = oSheet.getCellByPosition(5, 1);
oCell_2.setValue(15);
- XCell oCell_3 = (XCell)oSheet.getCellByPosition(3, 9);
+ XCell oCell_3 = oSheet.getCellByPosition(3, 9);
oTextRange = UnoRuntime.queryInterface(XTextRange.class, oCell_3);
oTextRange.setString("test 2");
cellArr[0] = oCell_1;
@@ -143,7 +143,7 @@ public class ScCellsEnumeration extends TestCase {
XCellRangesQuery oCellRangesQuery = UnoRuntime.queryInterface(XCellRangesQuery.class, oSheet);
XSheetCellRanges oSheetCellRanges = oCellRangesQuery.queryVisibleCells();
- oEnum = (XEnumerationAccess) oSheetCellRanges.getCells();
+ oEnum = oSheetCellRanges.getCells();
oObj = oSheetCellRanges.getCells().createEnumeration();
TestEnvironment tEnv = new TestEnvironment(oObj);