-Werror=unused-but-set-variable
Change-Id: I981e1b660dc94333935b3a451847198940e47e99
This commit is contained in:
parent
51b71a7be1
commit
f0920199f2
@ -98,9 +98,6 @@ void XMLGradientStyleImport::importXML(
|
||||
XML_TOKEN_MAP_END
|
||||
};
|
||||
|
||||
bool bHasName = false;
|
||||
bool bHasStyle = false;
|
||||
bool bHasStartColor = false;
|
||||
OUString aDisplayName;
|
||||
|
||||
awt::Gradient aGradient;
|
||||
@ -127,15 +124,10 @@ void XMLGradientStyleImport::importXML(
|
||||
switch( aTokenMap.Get( nPrefix, aStrAttrName ) )
|
||||
{
|
||||
case XML_TOK_GRADIENT_NAME:
|
||||
{
|
||||
rStrName = rStrValue;
|
||||
bHasName = true;
|
||||
}
|
||||
rStrName = rStrValue;
|
||||
break;
|
||||
case XML_TOK_GRADIENT_DISPLAY_NAME:
|
||||
{
|
||||
aDisplayName = rStrValue;
|
||||
}
|
||||
aDisplayName = rStrValue;
|
||||
break;
|
||||
case XML_TOK_GRADIENT_STYLE:
|
||||
{
|
||||
@ -143,7 +135,6 @@ void XMLGradientStyleImport::importXML(
|
||||
if( SvXMLUnitConverter::convertEnum( eValue, rStrValue, pXML_GradientStyle_Enum ) )
|
||||
{
|
||||
aGradient.Style = (awt::GradientStyle) eValue;
|
||||
bHasStyle = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -156,16 +147,10 @@ void XMLGradientStyleImport::importXML(
|
||||
aGradient.YOffset = static_cast< sal_Int16 >( nTmpValue );
|
||||
break;
|
||||
case XML_TOK_GRADIENT_STARTCOLOR:
|
||||
{
|
||||
bHasStartColor = ::sax::Converter::convertColor(
|
||||
aGradient.StartColor, rStrValue);
|
||||
}
|
||||
::sax::Converter::convertColor(aGradient.StartColor, rStrValue);
|
||||
break;
|
||||
case XML_TOK_GRADIENT_ENDCOLOR:
|
||||
{
|
||||
bHasStartColor = ::sax::Converter::convertColor(
|
||||
aGradient.EndColor, rStrValue);
|
||||
}
|
||||
::sax::Converter::convertColor(aGradient.EndColor, rStrValue);
|
||||
break;
|
||||
case XML_TOK_GRADIENT_STARTINT:
|
||||
::sax::Converter::convertPercent( nTmpValue, rStrValue );
|
||||
|
@ -84,10 +84,7 @@ void XMLHatchStyleImport::importXML(
|
||||
XML_TOKEN_MAP_END
|
||||
};
|
||||
|
||||
bool bHasName = false;
|
||||
bool bHasStyle = false;
|
||||
bool bHasColor = false;
|
||||
bool bHasDist = false;
|
||||
OUString aDisplayName;
|
||||
|
||||
drawing::Hatch aHatch;
|
||||
@ -111,10 +108,7 @@ void XMLHatchStyleImport::importXML(
|
||||
switch( aTokenMap.Get( nPrefix, aStrAttrName ) )
|
||||
{
|
||||
case XML_TOK_HATCH_NAME:
|
||||
{
|
||||
rStrName = rStrValue;
|
||||
bHasName = true;
|
||||
}
|
||||
rStrName = rStrValue;
|
||||
break;
|
||||
case XML_TOK_HATCH_DISPLAY_NAME:
|
||||
aDisplayName = rStrValue;
|
||||
@ -128,13 +122,10 @@ void XMLHatchStyleImport::importXML(
|
||||
}
|
||||
break;
|
||||
case XML_TOK_HATCH_COLOR:
|
||||
{
|
||||
bHasColor = ::sax::Converter::convertColor(
|
||||
aHatch.Color, rStrValue);
|
||||
}
|
||||
::sax::Converter::convertColor(aHatch.Color, rStrValue);
|
||||
break;
|
||||
case XML_TOK_HATCH_DISTANCE:
|
||||
bHasDist = rUnitConverter.convertMeasureToCore(
|
||||
rUnitConverter.convertMeasureToCore(
|
||||
(sal_Int32&)aHatch.Distance, rStrValue );
|
||||
break;
|
||||
case XML_TOK_HATCH_ROTATION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user