Some cppcheck cleaning

This commit is contained in:
Julien Nabet
2011-08-10 23:04:54 +02:00
parent d7d976c257
commit 0410bbafaf
4 changed files with 4 additions and 4 deletions

View File

@@ -591,7 +591,7 @@ sal_uInt32 ActivityImpl::ImpRegisterAgainScrollTextMixerState(sal_uInt32 nTime)
sal_uInt32 nRetval(0L); sal_uInt32 nRetval(0L);
ImpForceScrollTextAnimNodes(); ImpForceScrollTextAnimNodes();
if(maVector.size()) if(!maVector.empty())
{ {
sal_uInt32 nRelativeTime; sal_uInt32 nRelativeTime;
ScrollTextAnimNode* pNode = ImpGetScrollTextAnimNode(nTime, nRelativeTime); ScrollTextAnimNode* pNode = ImpGetScrollTextAnimNode(nTime, nRelativeTime);

View File

@@ -702,7 +702,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
catch( CannotConvertException& rExc ) catch( CannotConvertException& rExc )
{ {
rExc.ArgumentIndex = nPos; // optionalen Parameter Index hinzufuegen rExc.ArgumentIndex = nPos; // optionalen Parameter Index hinzufuegen
throw rExc; throw;
} }
} }

View File

@@ -387,7 +387,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap )
bInvalid = true; bInvalid = true;
double nWidth = 0.0; double nWidth = 0.0;
if ( !bInvalid && aToCompare.size() > 0 ) if ( (!bInvalid) && (!aToCompare.empty()) )
{ {
nWidth = *aToCompare.begin(); nWidth = *aToCompare.begin();
std::vector< double >::iterator pIt = aToCompare.begin(); std::vector< double >::iterator pIt = aToCompare.begin();

View File

@@ -237,7 +237,7 @@ SVX_DLLPUBLIC void getAllHit3DObjectsSortedFrontToBack(
// copy SdrObject pointers to return result set // copy SdrObject pointers to return result set
::std::vector< ImplPairDephAndObject >::iterator aIterator2(aDepthAndObjectResults.begin()); ::std::vector< ImplPairDephAndObject >::iterator aIterator2(aDepthAndObjectResults.begin());
for(;aIterator2 != aDepthAndObjectResults.end(); aIterator2++) for(;aIterator2 != aDepthAndObjectResults.end(); ++aIterator2)
{ {
o_rResult.push_back(aIterator2->getObject()); o_rResult.push_back(aIterator2->getObject());
} }