summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-25 10:23:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-25 10:29:50 +0000
commit90b755b2838a49d80e83bd2642bc8ff5c399396b (patch)
treee25da95adf84864adf53cc6345e432c6cdad3e82 /toolkit/source
parent5a21fcc73f4346ea78a777e91de506d8f47e485f (diff)
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx1
-rw-r--r--toolkit/source/helper/unopropertyarrayhelper.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index 2f46f97827a2..9c0e273cc550 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -438,6 +438,7 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
break;
}
DBG_ASSERT( bLegacy || pAllCurrencies != pAllCurrenciesEnd, "UnoControlModel::ImplGetDefaultValue: did not find the given bank symbol!" );
+ (void)bLegacy;
}
aDefault <<= sCurrencySymbol;
diff --git a/toolkit/source/helper/unopropertyarrayhelper.cxx b/toolkit/source/helper/unopropertyarrayhelper.cxx
index c21cf581464d..8d7e9a8ae024 100644
--- a/toolkit/source/helper/unopropertyarrayhelper.cxx
+++ b/toolkit/source/helper/unopropertyarrayhelper.cxx
@@ -84,13 +84,13 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString *
{
sal_uInt16 nId = sal::static_int_cast< sal_uInt16 >(
maIDs.GetObjectKey( s ));
- aSortedPropsIds.Insert( 1+GetPropertyOrderNr( nId ), (void*)(sal_uInt32)nId );
+ aSortedPropsIds.Insert( 1+GetPropertyOrderNr( nId ), (void*)(sal_uIntPtr)nId );
if ( nId == BASEPROPERTY_FONTDESCRIPTOR )
{
// Einzelproperties...
for ( sal_uInt16 i = BASEPROPERTY_FONTDESCRIPTORPART_START; i <= BASEPROPERTY_FONTDESCRIPTORPART_END; i++ )
- aSortedPropsIds.Insert( 1+GetPropertyOrderNr( i ), (void*)(sal_uInt32)i );
+ aSortedPropsIds.Insert( 1+GetPropertyOrderNr( i ), (void*)(sal_uIntPtr)i );
}
}