diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 12:58:07 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:02:59 +0200 |
commit | 3be987460db9938977c9ff7ed59b7e43b64f430e (patch) | |
tree | 83a1c99d0f0f9e189acf6418eba7749ae6500902 /wizards/com/sun/star/wizards/report | |
parent | dab59ab4bcadb14bef9ad7d185d58610fda22012 (diff) |
Java cleanup - remove unnecessary casts
Change-Id: I9fc995d9b3f971b9b8869cb3f21ddf69b4f90e08
Diffstat (limited to 'wizards/com/sun/star/wizards/report')
-rw-r--r-- | wizards/com/sun/star/wizards/report/DBColumn.java | 12 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/report/ReportLayouter.java | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java index a9da14ff6e16..69321d5cb8e3 100644 --- a/wizards/com/sun/star/wizards/report/DBColumn.java +++ b/wizards/com/sun/star/wizards/report/DBColumn.java @@ -311,11 +311,11 @@ public class DBColumn { if (AnyConverter.isBoolean(CurGroupValue)) { - dblValue = (double) AnyConverter.toInt(CurGroupValue); + dblValue = AnyConverter.toInt(CurGroupValue); } if (AnyConverter.isByte(CurGroupValue)) { - dblValue = (double) AnyConverter.toByte(CurGroupValue); + dblValue = AnyConverter.toByte(CurGroupValue); } else if (AnyConverter.isDouble(CurGroupValue)) { @@ -323,19 +323,19 @@ public class DBColumn } else if (AnyConverter.isFloat(CurGroupValue)) { - dblValue = (double) AnyConverter.toFloat(CurGroupValue); + dblValue = AnyConverter.toFloat(CurGroupValue); } else if (AnyConverter.isInt(CurGroupValue)) { - dblValue = (double) AnyConverter.toInt(CurGroupValue); + dblValue = AnyConverter.toInt(CurGroupValue); } else if (AnyConverter.isLong(CurGroupValue)) { - dblValue = (double) AnyConverter.toLong(CurGroupValue); + dblValue = AnyConverter.toLong(CurGroupValue); } else if (AnyConverter.isShort(CurGroupValue)) { - dblValue = (double) AnyConverter.toShort(CurGroupValue); + dblValue = AnyConverter.toShort(CurGroupValue); } xValCell.setValue(dblValue); } diff --git a/wizards/com/sun/star/wizards/report/ReportLayouter.java b/wizards/com/sun/star/wizards/report/ReportLayouter.java index 9c7c880961fb..a3ba9380000a 100644 --- a/wizards/com/sun/star/wizards/report/ReportLayouter.java +++ b/wizards/com/sun/star/wizards/report/ReportLayouter.java @@ -98,7 +98,7 @@ public class ReportLayouter { iSelPos = 0; } - iOldContentPos = (int) iSelPos; + iOldContentPos = iSelPos; xContentListBox = CurUnoDialog.insertListBox("lstContent", SOCONTENTLST, new ActionListenerImpl(), new ItemListenerImpl(), new String[] { @@ -146,7 +146,7 @@ public class ReportLayouter iSelLayoutPos }, new Integer(ReportWizard.SOTEMPLATEPAGE), LayoutFiles[0], new Short(curtabindex++), 99 }); - iOldLayoutPos = (int) iSelPos; + iOldLayoutPos = iSelPos; CurUnoDialog.insertControlModel("com.sun.star.awt.UnoControlFixedTextModel", "lblOrientation", new String[] { |