Kaydet (Commit) fea2e004 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: I5e665deb034b564de90e65981384ea5a2d892980
üst a2d5dc55
......@@ -3222,7 +3222,7 @@ SvLBoxTab* SvImpLBox::NextTab( SvLBoxTab* pTab )
for( int nTab=0; nTab < (nTabCount-1); nTab++)
{
if( pView->aTabs[nTab]==pTab )
return (SvLBoxTab*)(pView->aTabs[nTab+1]);
return pView->aTabs[nTab+1];
}
return 0;
}
......
......@@ -715,13 +715,13 @@ sal_Handle FontList::GetFirstFontInfo(const OUString& rName) const
sal_Handle FontList::GetNextFontInfo( sal_Handle hFontInfo )
{
ImplFontListFontInfo* pInfo = static_cast<ImplFontListFontInfo*>((void*)hFontInfo);
ImplFontListFontInfo* pInfo = static_cast<ImplFontListFontInfo*>(hFontInfo);
return (sal_Handle)(pInfo->mpNext);
}
const vcl::FontInfo& FontList::GetFontInfo( sal_Handle hFontInfo )
{
ImplFontListFontInfo* pInfo = static_cast<ImplFontListFontInfo*>((void*)hFontInfo);
ImplFontListFontInfo* pInfo = static_cast<ImplFontListFontInfo*>(hFontInfo);
return *pInfo;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment