summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/glosbib.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-03 10:43:11 +0200
committerNoel Grandin <noel@peralex.com>2014-12-03 10:43:53 +0200
commit0e2927ed2cffdc718085cadce3cc41e34cd6a04f (patch)
treefde369e43a16f06aac84e8b48f727f3e7a74b0fe /sw/source/ui/misc/glosbib.cxx
parent0b30d5344cad60967aa79bad86916debbf4371e9 (diff)
loplugin: cstylecast
Change-Id: Ic48a59c209e77382a0e431a5502c24a62407334b
Diffstat (limited to 'sw/source/ui/misc/glosbib.cxx')
-rw-r--r--sw/source/ui/misc/glosbib.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 9aab2ff9e24d..6f93bc1e30ae 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -87,7 +87,7 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(vcl::Window * pParent,
nCaseReadonly |= PATH_READONLY;
else if( SWUnoHelper::UCB_IsCaseSensitiveFileName( aTempFile.GetURL()))
nCaseReadonly |= PATH_CASE_SENSITIVE;
- m_pPathLB->SetEntryData(i, (void*)nCaseReadonly);
+ m_pPathLB->SetEntryData(i, reinterpret_cast<void*>(nCaseReadonly));
}
m_pPathLB->SelectEntryPos(0);
m_pPathLB->Enable(true);
@@ -318,7 +318,7 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, ModifyHdl)
bool bEnableNew = true;
bool bEnableDel = false;
sal_uLong nCaseReadonly =
- (sal_uLong)m_pPathLB->GetEntryData(m_pPathLB->GetSelectEntryPos());
+ reinterpret_cast<sal_uLong>(m_pPathLB->GetEntryData(m_pPathLB->GetSelectEntryPos()));
bool bDirReadonly = 0 != (nCaseReadonly&PATH_READONLY);
if(sEntry.isEmpty() || bDirReadonly)
@@ -333,8 +333,8 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, ModifyHdl)
for(sal_uLong i = 0; i < m_pGroupTLB->GetEntryCount(); i++)
{
OUString sTemp = m_pGroupTLB->GetEntryText( i, 0 );
- nCaseReadonly = (sal_uLong)m_pPathLB->GetEntryData(
- m_pPathLB->GetEntryPos(m_pGroupTLB->GetEntryText(i,1)));
+ nCaseReadonly = reinterpret_cast<sal_uLong>(m_pPathLB->GetEntryData(
+ m_pPathLB->GetEntryPos(m_pGroupTLB->GetEntryText(i,1))));
bool bCase = 0 != (nCaseReadonly & PATH_CASE_SENSITIVE);
if( !bCase && rSCmp.isEqual( sTemp, sEntry ))