summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-22 09:15:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-22 18:48:43 +0000
commit2ea92be9973e6892727eae37ae958863702b3658 (patch)
tree31a3e6bb3e43b67dd8ddfcfc37875956666f5dd9 /sc/source/ui/unoobj
parent015eb39d963acf534bd5beaf9331a6d37af2acd6 (diff)
convert SC_CONVERT constants to scoped enum
Change-Id: Ic81052e86ea6c2ea41357bde83ffd4df73afcb01 Reviewed-on: https://gerrit.libreoffice.org/18768 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/targuno.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/targuno.cxx b/sc/source/ui/unoobj/targuno.cxx
index 09dce6220125..d4032eb5fd6b 100644
--- a/sc/source/ui/unoobj/targuno.cxx
+++ b/sc/source/ui/unoobj/targuno.cxx
@@ -211,23 +211,23 @@ void SAL_CALL ScLinkTargetTypeObj::setPropertyValue(const OUString& /* aProperty
void ScLinkTargetTypeObj::SetLinkTargetBitmap( uno::Any& rRet, sal_uInt16 nType )
{
- sal_uInt16 nImgId = 0;
+ ScContentId nImgId = ScContentId::ROOT;
switch ( nType )
{
case SC_LINKTARGETTYPE_SHEET:
- nImgId = SC_CONTENT_TABLE;
+ nImgId = ScContentId::TABLE;
break;
case SC_LINKTARGETTYPE_RANGENAME:
- nImgId = SC_CONTENT_RANGENAME;
+ nImgId = ScContentId::RANGENAME;
break;
case SC_LINKTARGETTYPE_DBAREA:
- nImgId = SC_CONTENT_DBAREA;
+ nImgId = ScContentId::DBAREA;
break;
}
- if (nImgId)
+ if (nImgId != ScContentId::ROOT)
{
ImageList aEntryImages( ScResId( RID_IMAGELIST_NAVCONT ) );
- const Image& rImage = aEntryImages.GetImage( nImgId );
+ const Image& rImage = aEntryImages.GetImage( (sal_uInt16)nImgId );
rRet <<= uno::Reference< awt::XBitmap > (VCLUnoHelper::CreateBitmap( rImage.GetBitmapEx() ));
}
}