diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-17 10:33:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-19 10:41:53 +0200 |
commit | a96c308e52983b7bc0275e31e50a9b04e5805852 (patch) | |
tree | 33289e40c39985645766481ce22666039cd7db5c /wizards/com/sun/star/wizards/document/TimeStampControl.java | |
parent | 0897aae2c7759015a5b71d705240ac00ce5ddedd (diff) |
java: these fields can be converted to local variables
Change-Id: Ifefb5de196a3e5cbaa8945759da42886c69daacf
Diffstat (limited to 'wizards/com/sun/star/wizards/document/TimeStampControl.java')
-rw-r--r-- | wizards/com/sun/star/wizards/document/TimeStampControl.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/document/TimeStampControl.java b/wizards/com/sun/star/wizards/document/TimeStampControl.java index ed5a30bf9461..d777375503a7 100644 --- a/wizards/com/sun/star/wizards/document/TimeStampControl.java +++ b/wizards/com/sun/star/wizards/document/TimeStampControl.java @@ -39,9 +39,7 @@ public class TimeStampControl extends DatabaseControl private Resource oResource; private double nreldatewidth; private double nreltimewidth; - private int nTimeWidth; private int nDBWidth; - private int nDateWidth; XShape xShapeGroup; public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint) @@ -50,11 +48,11 @@ public class TimeStampControl extends DatabaseControl oResource = _oResource; oDateControl = new DatabaseControl(oFormHandler, _xFormName, _curFieldName, DataType.DATE, aPoint); int nDBHeight = oDateControl.getControlHeight(); - nDateWidth = oDateControl.getPreferredWidth(); + int nDateWidth = oDateControl.getPreferredWidth(); oDateControl.setSize(new Size(nDateWidth, nDBHeight)); Point aTimePoint = new Point(aPoint.X + 10 + nDateWidth, aPoint.Y); oTimeControl = new DatabaseControl(oFormHandler, _xFormName, _curFieldName, DataType.TIME, aTimePoint); - nTimeWidth = oTimeControl.getPreferredWidth(); + int nTimeWidth = oTimeControl.getPreferredWidth(); oTimeControl.setSize(new Size(nTimeWidth, nDBHeight)); nDBWidth = nDateWidth + nTimeWidth + 10; xShapes.add(oDateControl.xShape); |