summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/oleprops.cxx8
-rw-r--r--sfx2/source/view/viewfrm.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index 6ff78214d802..e194db7d2671 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -538,10 +538,10 @@ void SfxOleFileTimeProperty::ImplSave( SvStream& rStrm )
static_cast< sal_uInt16 >( maDateTime.Month ),
static_cast< sal_uInt16 >( maDateTime.Year ) ),
tools::Time(
- static_cast< sal_uIntPtr >( maDateTime.Hours ),
- static_cast< sal_uIntPtr >( maDateTime.Minutes ),
- static_cast< sal_uIntPtr >( maDateTime.Seconds ),
- static_cast< sal_uIntPtr >( maDateTime.NanoSeconds ) ) );
+ static_cast< sal_uInt16 >( maDateTime.Hours ),
+ static_cast< sal_uInt16 >( maDateTime.Minutes ),
+ static_cast< sal_uInt16 >( maDateTime.Seconds ),
+ static_cast< sal_uInt32 >( maDateTime.NanoSeconds ) ) );
// invalid time stamp is not converted to UTC
// heuristic to detect editing durations (which we assume to be < 1 year):
// check only the year, not the entire date
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index e7f0bbd1c3a4..94964af0ca92 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2694,8 +2694,8 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro )
aOUSource = pModule->GetSource32();
sal_uInt16 nStart, nEnd;
pMethod->GetLineRange( nStart, nEnd );
- sal_uIntPtr nlStart = nStart;
- sal_uIntPtr nlEnd = nEnd;
+ sal_uInt16 nlStart = nStart;
+ sal_uInt16 nlEnd = nEnd;
CutLines( aOUSource, nlStart-1, nlEnd-nlStart+1 );
}
}