summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/app/salinst.cxx
diff options
context:
space:
mode:
authorPatrick Luby <pluby@openoffice.org>2001-01-03 20:29:23 +0000
committerPatrick Luby <pluby@openoffice.org>2001-01-03 20:29:23 +0000
commit46271ceb83f7ebf2bb8bed7a4f23497d63399051 (patch)
treeab97568108fcf482f5279b76ff69a05503bbf57b /vcl/aqua/source/app/salinst.cxx
parentcb40ee0e0bccb1d32b0daabe9a580a13b9b2f7f9 (diff)
Removed unused data members from structs
Diffstat (limited to 'vcl/aqua/source/app/salinst.cxx')
-rw-r--r--vcl/aqua/source/app/salinst.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx
index eba21f334d41..6ac9d03f46b7 100644
--- a/vcl/aqua/source/app/salinst.cxx
+++ b/vcl/aqua/source/app/salinst.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salinst.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: pluby $ $Date: 2000-12-24 19:40:28 $
+ * last change: $Author: pluby $ $Date: 2001-01-03 21:29:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -305,9 +305,13 @@ void SalInstance::DestroyFrame( SalFrame* pFrame )
SalObject* SalInstance::CreateObject( SalFrame* pParent )
{
- SalObject *pObject = new SalObject;
+ SalObject *pObject = NULL;
- pObject->maObjectData.mhWnd = pParent->maFrameData.mhWnd;
+ if ( pParent )
+ {
+ pObject = new SalObject;
+ pObject->maObjectData.mpFrame = pParent;
+ }
return pObject;
}