Some cppcheck cleaning
This commit is contained in:
@@ -591,7 +591,7 @@ sal_uInt32 ActivityImpl::ImpRegisterAgainScrollTextMixerState(sal_uInt32 nTime)
|
||||
sal_uInt32 nRetval(0L);
|
||||
ImpForceScrollTextAnimNodes();
|
||||
|
||||
if(maVector.size())
|
||||
if(!maVector.empty())
|
||||
{
|
||||
sal_uInt32 nRelativeTime;
|
||||
ScrollTextAnimNode* pNode = ImpGetScrollTextAnimNode(nTime, nRelativeTime);
|
||||
|
@@ -702,7 +702,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
|
||||
catch( CannotConvertException& rExc )
|
||||
{
|
||||
rExc.ArgumentIndex = nPos; // optionalen Parameter Index hinzufuegen
|
||||
throw rExc;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -387,7 +387,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap )
|
||||
bInvalid = true;
|
||||
|
||||
double nWidth = 0.0;
|
||||
if ( !bInvalid && aToCompare.size() > 0 )
|
||||
if ( (!bInvalid) && (!aToCompare.empty()) )
|
||||
{
|
||||
nWidth = *aToCompare.begin();
|
||||
std::vector< double >::iterator pIt = aToCompare.begin();
|
||||
|
@@ -237,7 +237,7 @@ SVX_DLLPUBLIC void getAllHit3DObjectsSortedFrontToBack(
|
||||
// copy SdrObject pointers to return result set
|
||||
::std::vector< ImplPairDephAndObject >::iterator aIterator2(aDepthAndObjectResults.begin());
|
||||
|
||||
for(;aIterator2 != aDepthAndObjectResults.end(); aIterator2++)
|
||||
for(;aIterator2 != aDepthAndObjectResults.end(); ++aIterator2)
|
||||
{
|
||||
o_rResult.push_back(aIterator2->getObject());
|
||||
}
|
||||
|
Reference in New Issue
Block a user