summaryrefslogtreecommitdiff
path: root/sfx2/source/control/unoctitm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/unoctitm.cxx')
-rwxr-xr-x[-rw-r--r--]sfx2/source/control/unoctitm.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index cb92c6422f32..3f139ad3ac2b 100644..100755
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -435,7 +435,7 @@ void SfxOfficeDispatch::SetMasterUnoCommand( sal_Bool bSet )
sal_Bool SfxOfficeDispatch::IsMasterUnoCommand() const
{
if ( pControllerItem )
- pControllerItem->isMasterSlaveCommand();
+ return pControllerItem->isMasterSlaveCommand();
return sal_False;
}
@@ -577,12 +577,12 @@ void SfxDispatchController_Impl::addParametersToArgs( const com::sun::star::util
}
else if ( aParamType.equalsAsciiL( URLTypeNames[URLType_BOOL], 4 ))
{
- // BOOL support
+ // sal_Bool support
rArgs[nLen].Value <<= aValue.toBoolean();
}
else if ( aParamType.equalsAsciiL( URLTypeNames[URLType_BYTE], 4 ))
{
- // BYTE support
+ // sal_uInt8 support
rArgs[nLen].Value <<= sal_Int8( aValue.toInt32() );
}
else if ( aParamType.equalsAsciiL( URLTypeNames[URLType_LONG], 4 ))
@@ -622,7 +622,7 @@ void SfxDispatchController_Impl::addParametersToArgs( const com::sun::star::util
SfxMapUnit SfxDispatchController_Impl::GetCoreMetric( SfxItemPool& rPool, sal_uInt16 nSlotId )
{
- USHORT nWhich = rPool.GetWhich( nSlotId );
+ sal_uInt16 nWhich = rPool.GetWhich( nSlotId );
return rPool.GetMetric( nWhich );
}
@@ -738,7 +738,7 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util
{
const SfxSlot *pSlot = 0;
if ( pDispatcher->GetShellAndSlot_Impl( GetId(), &pShell, &pSlot, sal_False,
- SFX_CALLMODE_MODAL==(nCall&SFX_CALLMODE_MODAL), FALSE ) )
+ SFX_CALLMODE_MODAL==(nCall&SFX_CALLMODE_MODAL), sal_False ) )
{
if ( bMasterSlave )
{
@@ -823,10 +823,10 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util
aEvent.Source = (::com::sun::star::frame::XDispatch*) pDispatch;
if ( bSuccess && pItem && !pItem->ISA(SfxVoidItem) )
{
- USHORT nSubId( 0 );
+ sal_uInt16 nSubId( 0 );
if ( eMapUnit == SFX_MAPUNIT_TWIP )
nSubId |= CONVERT_TWIPS;
- pItem->QueryValue( aEvent.Result, (BYTE)nSubId );
+ pItem->QueryValue( aEvent.Result, (sal_uInt8)nSubId );
}
rListener->dispatchFinished( aEvent );
@@ -922,7 +922,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
if ( ( eState >= SFX_ITEM_AVAILABLE ) && pState && !IsInvalidItem( pState ) && !pState->ISA(SfxVoidItem) )
{
// Retrieve metric from pool to have correct sub ID when calling QueryValue
- USHORT nSubId( 0 );
+ sal_uInt16 nSubId( 0 );
SfxMapUnit eMapUnit( SFX_MAPUNIT_100TH_MM );
// retrieve the core metric
@@ -940,7 +940,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
if ( eMapUnit == SFX_MAPUNIT_TWIP )
nSubId |= CONVERT_TWIPS;
- pState->QueryValue( aState, (BYTE)nSubId );
+ pState->QueryValue( aState, (sal_uInt8)nSubId );
}
else if ( eState == SFX_ITEM_DONTCARE )
{