summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-17 10:33:26 +0200
committerNoel Grandin <noel@peralex.com>2014-12-19 10:41:53 +0200
commita96c308e52983b7bc0275e31e50a9b04e5805852 (patch)
tree33289e40c39985645766481ce22666039cd7db5c /bean
parent0897aae2c7759015a5b71d705240ac00ce5ddedd (diff)
java: these fields can be converted to local variables
Change-Id: Ifefb5de196a3e5cbaa8945759da42886c69daacf
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 964ff80ed08e..36d622dc3b7b 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -102,7 +102,9 @@ public class OOoBean
Neither a connection is established nor any document loaded.
*/
public OOoBean()
- {}
+ {
+ setLayout(new java.awt.BorderLayout());
+ }
// @requirement FUNC.CON.MULT/0.3
/** Constructor for an OOoBean which uses a specific office connection.
@@ -120,6 +122,7 @@ public class OOoBean
public OOoBean( OfficeConnection iConnection )
throws NoConnectionException
{
+ setLayout(new java.awt.BorderLayout());
try { setOOoConnection( iConnection ); }
catch ( HasConnectionException aExc )
{ /* impossible here */ }
@@ -1305,11 +1308,6 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
// Helper Methods / Internal Methods
- // general instance intializer
- {
- setLayout(new java.awt.BorderLayout());
- }
-
@Deprecated
@Override
public void paint( java.awt.Graphics aGraphics )