diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-15 14:11:19 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-15 16:02:46 -0500 |
commit | a2baeffbde83535c8cb2056006345b4d01265b90 (patch) | |
tree | d3f2186d3bf6a225dd266868c82fe7ff28dd1139 /dbaccess/source/ui/control | |
parent | 67582fd2e3180fde45c11e85f8c3eb5e20ef8bc0 (diff) |
Rename SvLBoxItem::IsA() to GetType(), and mark that const.
Change-Id: I542835154e40b25d68fc3995d911810e26e30501
Diffstat (limited to 'dbaccess/source/ui/control')
-rw-r--r-- | dbaccess/source/ui/control/listviewitems.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/control/tabletree.cxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/ui/control/listviewitems.cxx b/dbaccess/source/ui/control/listviewitems.cxx index 07b2b0aab880..1d2cc2d61a4c 100644 --- a/dbaccess/source/ui/control/listviewitems.cxx +++ b/dbaccess/source/ui/control/listviewitems.cxx @@ -43,13 +43,11 @@ namespace dbaui pView->Pop(); } - //------------------------------------------------------------------------ - sal_uInt16 OBoldListboxString::IsA() + sal_uInt16 OBoldListboxString::GetType() const { return SV_ITEM_ID_BOLDLBSTRING; } - //------------------------------------------------------------------------ void OBoldListboxString::Paint(const Point& rPos, SvTreeListBox& rDev, sal_uInt16 nFlags, SvTreeListEntry* pEntry ) { if (m_bEmphasized) diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index a2d41151c00e..05c9856cc5e2 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -124,7 +124,7 @@ void OTableTreeListBox::notifyHiContrastChanged() for (sal_uInt16 i=0;i<nCount;++i) { SvLBoxItem* pItem = pEntryLoop->GetItem(i); - if ( pItem && pItem->IsA() == SV_ITEM_ID_LBOXCONTEXTBMP) + if (pItem && pItem->GetType() == SV_ITEM_ID_LBOXCONTEXTBMP) { SvLBoxContextBmp* pContextBitmapItem = static_cast< SvLBoxContextBmp* >( pItem ); |