From 84f1fa190fc2b91d21b685f4d0ea99aaeea26fe0 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 28 Mar 2013 16:47:11 +0100 Subject: WaE: -Wsign-compare Change-Id: I4de04e5ba43735e5ed236109cdf5bfbfc9d1a220 --- writerfilter/source/dmapper/DomainMapperTableManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index 1dddd6767707..af64ffe6eee7 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx @@ -119,7 +119,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm) pPropMap->setValue( TablePropertyMap::TABLE_WIDTH_TYPE, text::SizeType::FIX ); pPropMap->setValue( TablePropertyMap::TABLE_WIDTH, m_nTableWidth ); } - else if( pMeasureHandler->getUnit() == NS_ooxml::LN_Value_ST_TblWidth_pct ) + else if( sal::static_int_cast(pMeasureHandler->getUnit()) == NS_ooxml::LN_Value_ST_TblWidth_pct ) { sal_Int32 nPercent = pMeasureHandler->getValue() / 50; if(nPercent > 100) @@ -127,7 +127,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm) pPropMap->setValue( TablePropertyMap::TABLE_WIDTH_TYPE, text::SizeType::VARIABLE ); pPropMap->setValue( TablePropertyMap::TABLE_WIDTH, nPercent ); } - else if( pMeasureHandler->getUnit() == NS_ooxml::LN_Value_ST_TblWidth_auto ) + else if( sal::static_int_cast(pMeasureHandler->getUnit()) == NS_ooxml::LN_Value_ST_TblWidth_auto ) { pPropMap->setValue( TablePropertyMap::TABLE_WIDTH_TYPE, text::SizeType::VARIABLE ); pPropMap->setValue( TablePropertyMap::TABLE_WIDTH, 100 ); -- cgit