diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-17 14:28:41 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-17 14:30:59 -0500 |
commit | 1fb5ecdd7442247e0ed8154928b66fab0bcbe3ad (patch) | |
tree | b3fb2f85d285f2080a65b0d0526a3f82d7790bec /sc | |
parent | 3f390be5a7f3dd0108e2257fa57cfcca6d0859e3 (diff) |
Const correct-ness in one place...
And an avalanche of changes that ensued.
Change-Id: I7f882b621ba5af4cd01b2ac7f482ee3eed24e3d5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/html/htmlexp2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/chartsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/drawvie3.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/html/htmlexp2.cxx b/sc/source/filter/html/htmlexp2.cxx index dfc8fb18eb54..0d31c275b3a4 100644 --- a/sc/source/filter/html/htmlexp2.cxx +++ b/sc/source/filter/html/htmlexp2.cxx @@ -160,7 +160,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) break; case OBJ_OLE2: { - Graphic* pGraphic = ((SdrOle2Obj*)pObject)->GetGraphic(); + const Graphic* pGraphic = static_cast<SdrOle2Obj*>(pObject)->GetGraphic(); if ( pGraphic ) { String aLinkName; diff --git a/sc/source/ui/drawfunc/chartsh.cxx b/sc/source/ui/drawfunc/chartsh.cxx index 251fa5d5b044..06ff385b43e8 100644 --- a/sc/source/ui/drawfunc/chartsh.cxx +++ b/sc/source/ui/drawfunc/chartsh.cxx @@ -90,7 +90,7 @@ void ScChartShell::ExecuteExportAsGraphic( SfxRequest& ) { SdrOle2Obj* aOle2Object = ((SdrOle2Obj*) pObject)->Clone(); aOle2Object->NbcResize(Point(), Fraction(1,1), Fraction(1,1)); - Graphic* pGraphic = aOle2Object->GetGraphic(); + const Graphic* pGraphic = aOle2Object->GetGraphic(); if( pGraphic != NULL ) { String sGrfNm, sFilterNm; diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx index 363fbf428646..cb3799f8c542 100644 --- a/sc/source/ui/view/drawvie3.cxx +++ b/sc/source/ui/view/drawvie3.cxx @@ -214,7 +214,7 @@ void ScDrawView::UpdateIMap( SdrObject* pObj ) aGraphic = ( (SdrGrafObj*) pObj )->GetGraphic(); else { - Graphic* pGraphic = ((const SdrOle2Obj*) pObj )->GetGraphic(); + const Graphic* pGraphic = static_cast<const SdrOle2Obj*>(pObj)->GetGraphic(); if ( pGraphic ) aGraphic = *pGraphic; } |