diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-28 16:41:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-29 09:05:51 +0100 |
commit | f3d9e12d087a4e907d6f505dfe27c10b765ea120 (patch) | |
tree | ed6f5b49435a64d59ad2404a7b5ee2d07a94b851 /starmath | |
parent | 991bd40380e274808698b4fcd9a1ea8812da7178 (diff) |
fix nutty pseudo-deference of NULL
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/document.hxx | 4 | ||||
-rw-r--r-- | starmath/source/document.cxx | 6 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 2 |
3 files changed, 4 insertions, 8 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 97753d9446e1..562763e12fc8 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -100,9 +100,7 @@ public: //////////////////////////////////////////////////////////// -void SetEditEngineDefaultFonts( - EditEngine &rEditEngine, - SfxItemPool &rEditEngineItemPool ); +void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool); //////////////////////////////////////////////////////////// diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 337e038df69e..b0ec43e32615 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -325,9 +325,7 @@ void SmDocShell::ArrangeFormula() } -void SetEditEngineDefaultFonts( - EditEngine &/*rEditEngine*/, - SfxItemPool &rEditEngineItemPool ) +void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool) { // // set fonts to be used @@ -394,7 +392,7 @@ EditEngine& SmDocShell::GetEditEngine() pEditEngineItemPool = EditEngine::CreatePool(); - SetEditEngineDefaultFonts( *pEditEngine, *pEditEngineItemPool ); + SetEditEngineDefaultFonts(*pEditEngineItemPool); pEditEngine = new EditEngine( pEditEngineItemPool ); diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index bfc0309ebe71..0779c823052c 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -250,7 +250,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& ) pEditEngine->SetDefTab( sal_uInt16( GetTextWidth( C2S("XXXX") ) ) ); - SetEditEngineDefaultFonts( *pEditEngine, *pEditEngineItemPool ); + SetEditEngineDefaultFonts(*pEditEngineItemPool); // forces new settings to be used // unfortunately this resets the whole edit engine |