diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:28:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:28:15 +0200 |
commit | fea2e004d4236da14f878cb2da0a76ded3ee77c2 (patch) | |
tree | db9b26417fbb9e76ad255263538985f609e7f6fb /svtools | |
parent | a2d5dc55f4d985cf80d33732eb45d1b60d7018f0 (diff) |
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I5e665deb034b564de90e65981384ea5a2d892980
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/ctrltool.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 3a389ab13d0d..5d87161e696b 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -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; } diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx index b8d32ec1cc23..a39c169c5802 100644 --- a/svtools/source/control/ctrltool.cxx +++ b/svtools/source/control/ctrltool.cxx @@ -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; } |