Some cppcheck cleaning
This commit is contained in:
parent
8bf6023025
commit
01a87c102f
@ -735,7 +735,7 @@ void HelpLinker::main( std::vector<std::string> &args,
|
||||
bExtensionMode = false;
|
||||
helpFiles.clear();
|
||||
|
||||
if (args.size() > 0 && args[0][0] == '@')
|
||||
if ((!args.empty()) && args[0][0] == '@')
|
||||
{
|
||||
std::vector<std::string> stringList;
|
||||
std::string strBuf;
|
||||
|
@ -270,7 +270,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
|
||||
GradientFillProperties::GradientStopMap::const_iterator aIt = maGradientProps.maGradientStops.begin();
|
||||
// Try to find the axial median
|
||||
for(size_t i=0;i<nColorCount;i+=3)
|
||||
aIt++;
|
||||
++aIt;
|
||||
// API StartColor is inner color in axial gradient
|
||||
// aIt->second.hasColor() kind would be better than Color != API_RGB_WHITE
|
||||
if( aGradient.StartColor == aGradient.EndColor &&
|
||||
|
@ -1058,7 +1058,7 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< uno::Seq
|
||||
sal_Int32 nInd = 0;
|
||||
for ( vector < uno::Sequence < PropertyValue > >::const_iterator aIter = aManList.begin(), aEnd = aManList.end();
|
||||
aIter != aEnd;
|
||||
aIter++, nInd++ )
|
||||
++aIter, ++nInd )
|
||||
{
|
||||
aManifestSequence[nInd] = ( *aIter );
|
||||
}
|
||||
|
@ -1351,7 +1351,7 @@ SdrPage::~SdrPage()
|
||||
// of page users. Therefore we have to use a copy of the list for the
|
||||
// iteration.
|
||||
::sdr::PageUserVector aListCopy (maPageUsers.begin(), maPageUsers.end());
|
||||
for(::sdr::PageUserVector::iterator aIterator = aListCopy.begin(); aIterator != aListCopy.end(); aIterator++)
|
||||
for(::sdr::PageUserVector::iterator aIterator = aListCopy.begin(); aIterator != aListCopy.end(); ++aIterator)
|
||||
{
|
||||
sdr::PageUser* pPageUser = *aIterator;
|
||||
DBG_ASSERT(pPageUser, "SdrPage::~SdrPage: corrupt PageUser list (!)");
|
||||
|
@ -6617,7 +6617,7 @@ bool WW8PLCF_HdFt::GetTextPos(sal_uInt8 grpfIhdt, sal_uInt8 nWhich, WW8_CP& rSta
|
||||
aPLCF.SetIdx( nIdx ); // Lookup suitable CP
|
||||
aPLCF.Get( rStart, nEnd, pData );
|
||||
rLen = nEnd - rStart;
|
||||
aPLCF++;
|
||||
++aPLCF;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user