Kaydet (Commit) 7518af82 authored tarafından Miklos Vajna's avatar Miklos Vajna

oox: fix loplugin warnings

Change-Id: I73375f46d31ef7446b7c059aa2a23024e677021c
üst 823bd504
...@@ -167,8 +167,8 @@ BlipContext::BlipContext( ContextHandler& rParent, ...@@ -167,8 +167,8 @@ BlipContext::BlipContext( ContextHandler& rParent,
else if( aAttribs.hasAttribute( R_TOKEN( link ) ) ) else if( aAttribs.hasAttribute( R_TOKEN( link ) ) )
{ {
// external URL // external URL
OUString aRelId = aAttribs.getString( R_TOKEN( link ), OUString() ); // OUString aRelId = aAttribs.getString( R_TOKEN( link ), OUString() );
OUString aTargetLink = getFilter().getAbsoluteUrl( getRelations().getExternalTargetFromRelId( aRelId ) ); // OUString aTargetLink = getFilter().getAbsoluteUrl( getRelations().getExternalTargetFromRelId( aRelId ) );
// TODO: load external picture // TODO: load external picture
} }
} }
......
...@@ -731,7 +731,7 @@ void ChartExport::_ExportContent() ...@@ -731,7 +731,7 @@ void ChartExport::_ExportContent()
aAny >>= msChartAddress; aAny >>= msChartAddress;
//maExportHelper.SetChartRangeAddress( sChartAddress ); //maExportHelper.SetChartRangeAddress( sChartAddress );
OUString sTableNumberList; // OUString sTableNumberList;
aAny = xProp->getPropertyValue( aAny = xProp->getPropertyValue(
OUString("TableNumberList")); OUString("TableNumberList"));
aAny >>= msTableNumberList; aAny >>= msTableNumberList;
......
...@@ -761,7 +761,7 @@ void DrawingML::WriteRunProperties( Reference< XPropertySet > rRun, sal_Bool bIs ...@@ -761,7 +761,7 @@ void DrawingML::WriteRunProperties( Reference< XPropertySet > rRun, sal_Bool bIs
const char* typeface = NULL; const char* typeface = NULL;
const char* pitch = NULL; const char* pitch = NULL;
const char* charset = NULL; const char* charset = NULL;
OUString usTypeface, usPitch, usCharset; OUString usTypeface;
mAny >>= usTypeface; mAny >>= usTypeface;
String aSubstName( GetSubsFontName( usTypeface, SUBSFONT_ONLYONE | SUBSFONT_MS ) ); String aSubstName( GetSubsFontName( usTypeface, SUBSFONT_ONLYONE | SUBSFONT_MS ) );
...@@ -781,7 +781,7 @@ void DrawingML::WriteRunProperties( Reference< XPropertySet > rRun, sal_Bool bIs ...@@ -781,7 +781,7 @@ void DrawingML::WriteRunProperties( Reference< XPropertySet > rRun, sal_Bool bIs
const char* typeface = NULL; const char* typeface = NULL;
const char* pitch = NULL; const char* pitch = NULL;
const char* charset = NULL; const char* charset = NULL;
OUString usTypeface, usPitch, usCharset; OUString usTypeface;
mAny >>= usTypeface; mAny >>= usTypeface;
String aSubstName( GetSubsFontName( usTypeface, SUBSFONT_ONLYONE | SUBSFONT_MS ) ); String aSubstName( GetSubsFontName( usTypeface, SUBSFONT_ONLYONE | SUBSFONT_MS ) );
......
...@@ -1856,7 +1856,7 @@ void AxListBoxModel::convertFromProperties( PropertySet& rPropSet, const Control ...@@ -1856,7 +1856,7 @@ void AxListBoxModel::convertFromProperties( PropertySet& rPropSet, const Control
bool bRes = false; bool bRes = false;
if ( rPropSet.getProperty( bRes, PROP_MultiSelection ) ) if ( rPropSet.getProperty( bRes, PROP_MultiSelection ) )
rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor );
rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect );
AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv );
...@@ -2493,8 +2493,8 @@ HtmlTextBoxModel::HtmlTextBoxModel() ...@@ -2493,8 +2493,8 @@ HtmlTextBoxModel::HtmlTextBoxModel()
bool bool
HtmlTextBoxModel::importBinaryModel( BinaryInputStream& rInStrm ) HtmlTextBoxModel::importBinaryModel( BinaryInputStream& rInStrm )
{ {
OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() );
#ifdef DEBUG #ifdef DEBUG
OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() );
// in msocximex ( where this is ported from, it appears *nothing* is read // in msocximex ( where this is ported from, it appears *nothing* is read
// from the control stream ), surely there is some useful info there ? // from the control stream ), surely there is some useful info there ?
OSL_TRACE("HtmlTextBoxModel::importBinaryModel - string contents of stream :"); OSL_TRACE("HtmlTextBoxModel::importBinaryModel - string contents of stream :");
......
...@@ -46,7 +46,7 @@ namespace oox { namespace ppt { ...@@ -46,7 +46,7 @@ namespace oox { namespace ppt {
} }
} }
::oox::core::ContextHandlerRef BuildListContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) ::oox::core::ContextHandlerRef BuildListContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& /*rAttribs*/ )
{ {
switch( aElementToken ) switch( aElementToken )
{ {
...@@ -64,7 +64,7 @@ namespace oox { namespace ppt { ...@@ -64,7 +64,7 @@ namespace oox { namespace ppt {
case PPT_TOKEN( bldGraphic ): case PPT_TOKEN( bldGraphic ):
{ {
mbInBldGraphic = true; mbInBldGraphic = true;
OUString sShapeId = rAttribs.getString( XML_spid, OUString() ); // OUString sShapeId = rAttribs.getString( XML_spid, OUString() );
// TODO // TODO
// bool uiExpand = rAttribs.getBool( XML_uiExpand, true ); // bool uiExpand = rAttribs.getBool( XML_uiExpand, true );
/* this is unsigned */ /* this is unsigned */
......
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