forked from amazingfate/loongoffice
Java cleanup - remove unnecessary casts in the ODK code
Change-Id: I1ab8ad5182444fc3eebd2349135a0240ebbe0fd4 Reviewed-on: https://gerrit.libreoffice.org/3566 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
This commit is contained in:
committed by
Fridrich Strba
parent
4f6adb0585
commit
68b9fb0aae
@ -261,7 +261,7 @@ public class HideableTreeModel implements TreeModel {
|
||||
if(parent instanceof TreeNode) {
|
||||
TreeNode p = (TreeNode) parent;
|
||||
for(int i = 0, j = -1; i < p.getChildCount(); i++) {
|
||||
TreeNode pc = (TreeNode)p.getChildAt(i);
|
||||
TreeNode pc = p.getChildAt(i);
|
||||
if(isNodeVisible(pc)) {
|
||||
j++;
|
||||
}
|
||||
@ -279,7 +279,7 @@ public class HideableTreeModel implements TreeModel {
|
||||
if(parent instanceof TreeNode) {
|
||||
TreeNode p = (TreeNode) parent;
|
||||
for(int i = 0; i < p.getChildCount(); i++) {
|
||||
TreeNode pc = (TreeNode)p.getChildAt(i);
|
||||
TreeNode pc = p.getChildAt(i);
|
||||
if(isNodeVisible(pc)) {
|
||||
count++;
|
||||
}
|
||||
@ -297,7 +297,7 @@ public class HideableTreeModel implements TreeModel {
|
||||
if(isNodeVisible(c)) {
|
||||
index = 0;
|
||||
for(int i = 0; i < p.getChildCount(); i++) {
|
||||
TreeNode pc = (TreeNode)p.getChildAt(i);
|
||||
TreeNode pc = p.getChildAt(i);
|
||||
if(pc.equals(c)) {
|
||||
return index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user