summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-21 21:01:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-21 21:01:52 +0000
commit0e263d61811480f3a9dbc6ad7c752f6cfae4e3fc (patch)
tree3509bc85aae4a4edf145e59fdeb21cc08bd09ddc /starmath
parent6270e76bf5f075072951519d904247e55ff702a6 (diff)
order pImpl before aGraphic because aGraphic deferences pImpl in ctor
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx3
-rw-r--r--starmath/source/view.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index d1d9e7e99b1d..d716e72f9c07 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -233,6 +233,8 @@ class SmViewShell: public SfxViewShell
// for handling the PasteClipboardState
friend class SmClipboardChangeListener;
+ SmViewShell_Impl* pImpl;
+
SmGraphicWindow aGraphic;
SmGraphicController aGraphicController;
String StatusText;
@@ -240,7 +242,6 @@ class SmViewShell: public SfxViewShell
::com::sun::star::uno:: Reference <
::com::sun::star::lang:: XEventListener > xClipEvtLstnr;
SmClipboardChangeListener* pClipEvtLstnr;
- SmViewShell_Impl* pImpl;
bool bPasteState;
DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* );
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 9d0a0249a31a..21253b0fad86 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -2006,9 +2006,9 @@ void SmViewShell::GetState(SfxItemSet &rSet)
SmViewShell::SmViewShell(SfxViewFrame *pFrame_, SfxViewShell *):
SfxViewShell(pFrame_, SFX_VIEW_HAS_PRINTOPTIONS | SFX_VIEW_CAN_PRINT),
+ pImpl( new SmViewShell_Impl ),
aGraphic(this),
- aGraphicController(aGraphic, SID_GAPHIC_SM, pFrame_->GetBindings()),
- pImpl( new SmViewShell_Impl )
+ aGraphicController(aGraphic, SID_GAPHIC_SM, pFrame_->GetBindings())
{
RTL_LOGFILE_CONTEXT( aLog, "starmath: SmViewShell::SmViewShell" );