diff options
author | Patrick Luby <pluby@openoffice.org> | 2001-01-03 20:29:23 +0000 |
---|---|---|
committer | Patrick Luby <pluby@openoffice.org> | 2001-01-03 20:29:23 +0000 |
commit | 46271ceb83f7ebf2bb8bed7a4f23497d63399051 (patch) | |
tree | ab97568108fcf482f5279b76ff69a05503bbf57b /vcl/aqua/source | |
parent | cb40ee0e0bccb1d32b0daabe9a580a13b9b2f7f9 (diff) |
Removed unused data members from structs
Diffstat (limited to 'vcl/aqua/source')
-rw-r--r-- | vcl/aqua/source/app/salinst.cxx | 12 | ||||
-rw-r--r-- | vcl/aqua/source/window/salobj.cxx | 19 |
2 files changed, 19 insertions, 12 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; } diff --git a/vcl/aqua/source/window/salobj.cxx b/vcl/aqua/source/window/salobj.cxx index c180a408a9e4..5986288b0ee5 100644 --- a/vcl/aqua/source/window/salobj.cxx +++ b/vcl/aqua/source/window/salobj.cxx @@ -2,15 +2,15 @@ * * $RCSfile: salobj.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: pluby $ $Date: 2000-11-28 06:41:47 $ + * last change: $Author: pluby $ $Date: 2001-01-03 21:29:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses * - * - GNU Lesser General Public License Version 2.1 - * - Sun Industry Standards Source License Version 1.1 + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 * * Sun Microsystems Inc., October, 2000 * @@ -83,10 +83,7 @@ SalObject::SalObject() { SalData* pSalData = GetSalData(); - maObjectData.mhWnd = NULL; - maObjectData.mhWndChild = NULL; - maObjectData.mhLastFocusWnd = NULL; - maObjectData.maSysData.nSize = sizeof( SystemEnvData ); + maObjectData.mpFrame = NULL; maObjectData.mpInst = NULL; maObjectData.mpProc = ImplSalObjectCallbackDummy; @@ -184,10 +181,16 @@ void SalObject::SetBackground( SalColor nSalColor ) const SystemEnvData* SalObject::GetSystemData() const { + return NULL; } // ----------------------------------------------------------------------- void SalObject::SetCallback( void* pInst, SALOBJECTPROC pProc ) { + maObjectData.mpInst = pInst; + if ( pProc ) + maObjectData.mpProc = pProc; + else + maObjectData.mpProc = ImplSalObjectCallbackDummy; } |