Kaydet (Commit) 2a777a10 authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: fix new clang warnings

Change-Id: I0f7cec0f300290fe3ea465f344cfda642824ed0b
üst 681e894b
......@@ -545,19 +545,19 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
if ( rInfo.pTableDefaults->size( ) )
pAllCellProps->insert( rInfo.pTableDefaults );
// Fill the cell properties with the ones of the style
sal_Int32 nCellStyleMask = 0;
const PropertyMap::iterator aCnfStyleIter =
// Fill the cell properties with the ones of the style
sal_Int32 nCellStyleMask = 0;
const PropertyMap::iterator aCnfStyleIter =
aCellIterator->get()->find( PropertyDefinition( PROP_CNF_STYLE, false ) );
if ( aCnfStyleIter != aCellIterator->get( )->end( ) )
{
if ( rInfo.pTableStyle ) {
OUString sMask;
aCnfStyleIter->second >>= sMask;
nCellStyleMask = sMask.toInt32( 2 );
}
aCellIterator->get( )->erase( aCnfStyleIter );
if ( aCnfStyleIter != aCellIterator->get( )->end( ) )
{
if ( rInfo.pTableStyle ) {
OUString sMask;
aCnfStyleIter->second >>= sMask;
nCellStyleMask = sMask.toInt32( 2 );
}
aCellIterator->get( )->erase( aCnfStyleIter );
}
if ( rInfo.pTableStyle )
{
......
......@@ -2731,7 +2731,7 @@ void DomainMapper_Impl::CloseFieldCommand()
break;
case FIELD_COMMENTS :
{
OUString sParam = lcl_ExtractParameter(pContext->GetCommand(), sizeof(" COMMENTS") );
// OUString sParam = lcl_ExtractParameter(pContext->GetCommand(), sizeof(" COMMENTS") );
// A parameter with COMMENTS shouldn't set fixed
// ( or at least the binary filter doesn't )
// If we set fixed then we wont export a field cmd.
......
......@@ -129,7 +129,6 @@ void FontTable::lcl_sprm(Sprm& rSprm)
Value::Pointer_t pValue = rSprm.getValue();
sal_Int32 nIntValue = pValue->getInt();
(void)nIntValue;
OUString sStringValue = pValue->getString();
switch(nSprmId)
{
case NS_ooxml::LN_CT_Font_charset:
......
......@@ -231,7 +231,6 @@ bool FormControlHelper::processField(uno::Reference<text::XFormField> xFormField
aAny <<= m_pFFData->getCheckboxChecked();
if ( xPropSet.is() )
xPropSet->setPropertyValue("Checked", aAny);
OUString sName;
}
else if (m_pImpl->m_eFieldId == FIELD_FORMDROPDOWN )
{
......
......@@ -87,12 +87,6 @@ void ThemeTable::lcl_sprm(Sprm& rSprm)
#endif
sal_uInt32 nSprmId = rSprm.getId();
(void)nSprmId;
Value::Pointer_t pValue = rSprm.getValue();
sal_Int32 nIntValue = pValue->getInt();
(void)nIntValue;
OUString sStringValue = pValue->getString();
switch(nSprmId)
{
......
......@@ -64,7 +64,6 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
{
MediaDescriptor aMediaDesc( aDescriptor );
bool bRepairStorage = aMediaDesc.getUnpackedValueOrDefault( "RepairPackage", false );
OUString sFilterName = aMediaDesc.getUnpackedValueOrDefault( MediaDescriptor::PROP_FILTERNAME(), OUString() );
uno::Reference< io::XInputStream > xInputStream;
try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment