summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-01-17 14:28:41 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-01-17 14:30:59 -0500
commit1fb5ecdd7442247e0ed8154928b66fab0bcbe3ad (patch)
treeb3fb2f85d285f2080a65b0d0526a3f82d7790bec /sc/source/ui
parent3f390be5a7f3dd0108e2257fa57cfcca6d0859e3 (diff)
Const correct-ness in one place...
And an avalanche of changes that ensued. Change-Id: I7f882b621ba5af4cd01b2ac7f482ee3eed24e3d5
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/drawfunc/chartsh.cxx2
-rw-r--r--sc/source/ui/view/drawvie3.cxx2
2 files changed, 2 insertions, 2 deletions
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;
}