summaryrefslogtreecommitdiff
path: root/UnoControls/source/base/basecontainercontrol.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'UnoControls/source/base/basecontainercontrol.cxx')
-rw-r--r--UnoControls/source/base/basecontainercontrol.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx
index 5d78317cf043..9c6bef517e53 100644
--- a/UnoControls/source/base/basecontainercontrol.cxx
+++ b/UnoControls/source/base/basecontainercontrol.cxx
@@ -364,20 +364,16 @@ void SAL_CALL BaseContainerControl::setVisible ( sal_Bool bVisible )
// protected method
-WindowDescriptor* BaseContainerControl::impl_getWindowDescriptor ( const Reference< XWindowPeer > & rParentPeer )
+WindowDescriptor BaseContainerControl::impl_getWindowDescriptor ( const Reference< XWindowPeer > & rParentPeer )
{
- // - used from "createPeer()" to set the values of a WindowDescriptor!!!
- // - if you will change the descriptor-values, you must override this virtual function
- // - the caller must release the memory for this dynamical descriptor!!!
-
- WindowDescriptor * aDescriptor = new WindowDescriptor;
-
- aDescriptor->Type = WindowClass_CONTAINER;
- aDescriptor->WindowServiceName = "window";
- aDescriptor->ParentIndex = -1;
- aDescriptor->Parent = rParentPeer;
- aDescriptor->Bounds = getPosSize ();
- aDescriptor->WindowAttributes = 0;
+ WindowDescriptor aDescriptor;
+
+ aDescriptor.Type = WindowClass_CONTAINER;
+ aDescriptor.WindowServiceName = "window";
+ aDescriptor.ParentIndex = -1;
+ aDescriptor.Parent = rParentPeer;
+ aDescriptor.Bounds = getPosSize ();
+ aDescriptor.WindowAttributes = 0;
return aDescriptor;
}