cppcheck: Prefer prefix ++/-- operators
Change-Id: If9fa06958c4ebb45a5d4acf3b2994dd3b79f81bf
This commit is contained in:
Submodule helpcontent2 updated: a8c8f80b93...4afc42f9eb
@@ -402,7 +402,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
|||||||
bSymmetric = false;
|
bSymmetric = false;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aItA++;
|
++aItA;
|
||||||
aItZ = boost::prior(aItZ);
|
aItZ = boost::prior(aItZ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -430,7 +430,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
|||||||
", number of stops: " << aGradientStops.size());
|
", number of stops: " << aGradientStops.size());
|
||||||
for (GradientFillProperties::GradientStopMap::iterator p(aGradientStops.begin());
|
for (GradientFillProperties::GradientStopMap::iterator p(aGradientStops.begin());
|
||||||
p != aGradientStops.end();
|
p != aGradientStops.end();
|
||||||
p++)
|
++p)
|
||||||
SAL_INFO("oox.drawingml.gradient", " " << std::distance(aGradientStops.begin(), p) << ": " <<
|
SAL_INFO("oox.drawingml.gradient", " " << std::distance(aGradientStops.begin(), p) << ": " <<
|
||||||
p->first << ": " <<
|
p->first << ": " <<
|
||||||
std::hex << p->second.getColor( rGraphicHelper, nPhClr ) << std::dec <<
|
std::hex << p->second.getColor( rGraphicHelper, nPhClr ) << std::dec <<
|
||||||
@@ -443,7 +443,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
|||||||
GradientFillProperties::GradientStopMap::iterator aIt(aGradientStops.begin());
|
GradientFillProperties::GradientStopMap::iterator aIt(aGradientStops.begin());
|
||||||
double nWidestWidth = -1;
|
double nWidestWidth = -1;
|
||||||
GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart;
|
GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart;
|
||||||
aIt++;
|
++aIt;
|
||||||
while( aIt != aGradientStops.end() )
|
while( aIt != aGradientStops.end() )
|
||||||
{
|
{
|
||||||
if( aIt->first - boost::prior(aIt)->first > nWidestWidth )
|
if( aIt->first - boost::prior(aIt)->first > nWidestWidth )
|
||||||
@@ -451,7 +451,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
|||||||
nWidestWidth = aIt->first - boost::prior(aIt)->first;
|
nWidestWidth = aIt->first - boost::prior(aIt)->first;
|
||||||
aWidestSegmentStart = boost::prior(aIt);
|
aWidestSegmentStart = boost::prior(aIt);
|
||||||
}
|
}
|
||||||
aIt++;
|
++aIt;
|
||||||
}
|
}
|
||||||
assert( nWidestWidth > 0 );
|
assert( nWidestWidth > 0 );
|
||||||
|
|
||||||
@@ -515,7 +515,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
|||||||
nWidestWidth = aIt->first - boost::prior(aIt)->first;
|
nWidestWidth = aIt->first - boost::prior(aIt)->first;
|
||||||
aWidestSegmentStart = boost::prior(aIt);
|
aWidestSegmentStart = boost::prior(aIt);
|
||||||
}
|
}
|
||||||
aIt++;
|
++aIt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SAL_INFO("oox.drawingml.gradient", "widest segment start: " << aWidestSegmentStart->first << ", border: " << nBorder);
|
SAL_INFO("oox.drawingml.gradient", "widest segment start: " << aWidestSegmentStart->first << ", border: " << nBorder);
|
||||||
|
@@ -519,7 +519,7 @@ bool XMLPropStyleContext::doNewDrawingLayerFillStyleDefinitionsExist(
|
|||||||
|
|
||||||
if(rMapper.is())
|
if(rMapper.is())
|
||||||
{
|
{
|
||||||
for(::std::vector< XMLPropertyState >::const_iterator a = maProperties.begin(); a != maProperties.end(); a++)
|
for(::std::vector< XMLPropertyState >::const_iterator a = maProperties.begin(); a != maProperties.end(); ++a)
|
||||||
{
|
{
|
||||||
if(a->mnIndex != -1)
|
if(a->mnIndex != -1)
|
||||||
{
|
{
|
||||||
@@ -567,7 +567,7 @@ bool XMLPropStyleContext::deactivateOldFillStyleDefinitions(
|
|||||||
|
|
||||||
if(rMapper.is())
|
if(rMapper.is())
|
||||||
{
|
{
|
||||||
for(::std::vector< XMLPropertyState >::iterator a = maProperties.begin(); a != maProperties.end(); a++)
|
for(::std::vector< XMLPropertyState >::iterator a = maProperties.begin(); a != maProperties.end(); ++a)
|
||||||
{
|
{
|
||||||
if(a->mnIndex != -1)
|
if(a->mnIndex != -1)
|
||||||
{
|
{
|
||||||
@@ -603,7 +603,7 @@ bool XMLPropStyleContext::translateNameBasedDrawingLayerFillStyleDefinitionsToSt
|
|||||||
static OUString s_FillBitmapName(RTL_CONSTASCII_USTRINGPARAM("FillBitmapName"));
|
static OUString s_FillBitmapName(RTL_CONSTASCII_USTRINGPARAM("FillBitmapName"));
|
||||||
static OUString s_FillTransparenceGradientName(RTL_CONSTASCII_USTRINGPARAM("FillTransparenceGradientName"));
|
static OUString s_FillTransparenceGradientName(RTL_CONSTASCII_USTRINGPARAM("FillTransparenceGradientName"));
|
||||||
|
|
||||||
for(::std::vector< XMLPropertyState >::iterator a = maProperties.begin(); a != maProperties.end(); a++)
|
for(::std::vector< XMLPropertyState >::iterator a = maProperties.begin(); a != maProperties.end(); ++a)
|
||||||
{
|
{
|
||||||
if(a->mnIndex != -1)
|
if(a->mnIndex != -1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user