summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-06-12 11:51:55 +0200
committerEike Rathke <erack@redhat.com>2012-06-12 13:32:21 +0200
commit0f79440a86dc788a38ef4b3be63bffd2cd396ddc (patch)
tree4a7000eea9d080fd007533481799b7fe406f2c7e /xmloff
parentd2a02df2f9725a1884131c0ab415a2b122a44420 (diff)
work around spurious signed overflow warnings
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) com/sun/star/uno/Sequence.hxx:178:10: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow] Change-Id: Ibbc2f3533097ad379e1707f77039c675a0d00133
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 801d4122508f..cdadaf4c2d61 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -636,7 +636,7 @@ void lcl_ApplyDataFromRectangularRangeToDiagram(
if( !sColTrans.isEmpty() || !sRowTrans.isEmpty() )
{
aArgs.realloc( aArgs.getLength() + 1 );
- aArgs[ aArgs.getLength() - 1 ] = beans::PropertyValue(
+ aArgs[ sal::static_int_cast<sal_uInt32>(aArgs.getLength()) - 1 ] = beans::PropertyValue(
::rtl::OUString( "SequenceMapping" ),
-1, uno::makeAny( !sColTrans.isEmpty()
? lcl_getNumberSequenceFromString( sColTrans, bHasCateories && !xNewDoc->hasInternalDataProvider() )
@@ -662,7 +662,7 @@ void lcl_ApplyDataFromRectangularRangeToDiagram(
if( !aChartOleObjectName.isEmpty() )
{
aArgs.realloc( aArgs.getLength() + 1 );
- aArgs[ aArgs.getLength() - 1 ] = beans::PropertyValue(
+ aArgs[ sal::static_int_cast<sal_uInt32>(aArgs.getLength()) - 1 ] = beans::PropertyValue(
::rtl::OUString( "ChartOleObjectName" ),
-1, uno::makeAny( aChartOleObjectName ),
beans::PropertyState_DIRECT_VALUE );
@@ -674,11 +674,11 @@ void lcl_ApplyDataFromRectangularRangeToDiagram(
xDataProvider->createDataSource( aArgs ));
aArgs.realloc( aArgs.getLength() + 2 );
- aArgs[ aArgs.getLength() - 2 ] = beans::PropertyValue(
+ aArgs[ sal::static_int_cast<sal_uInt32>(aArgs.getLength()) - 2 ] = beans::PropertyValue(
::rtl::OUString( "HasCategories" ),
-1, uno::makeAny( bHasCateories ),
beans::PropertyState_DIRECT_VALUE );
- aArgs[ aArgs.getLength() - 1 ] = beans::PropertyValue(
+ aArgs[ sal::static_int_cast<sal_uInt32>(aArgs.getLength()) - 1 ] = beans::PropertyValue(
::rtl::OUString("UseCategoriesAsX"),
-1, uno::makeAny( sal_False ),//categories in ODF files are not to be used as x values (independent from what is offered in our ui)
beans::PropertyState_DIRECT_VALUE );