cppcheck: Prefer prefix ++/-- operators
Change-Id: I290ccba1487e59ea6f86bfb0382671ca4ed50831
This commit is contained in:
@@ -110,7 +110,7 @@ void AndroidSalInstance::RedrawWindows(ANativeWindow_Buffer *pBuffer)
|
|||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
std::list< SalFrame* >::const_iterator it;
|
std::list< SalFrame* >::const_iterator it;
|
||||||
for ( it = getFrames().begin(); it != getFrames().end(); i++, it++ )
|
for ( it = getFrames().begin(); it != getFrames().end(); i++, ++it )
|
||||||
{
|
{
|
||||||
SvpSalFrame *pFrame = static_cast<SvpSalFrame *>(*it);
|
SvpSalFrame *pFrame = static_cast<SvpSalFrame *>(*it);
|
||||||
|
|
||||||
|
@@ -278,7 +278,7 @@ PK11SymKey* SecurityEnvironment_NssImpl :: getSymKey( unsigned int position ) th
|
|||||||
unsigned int pos ;
|
unsigned int pos ;
|
||||||
|
|
||||||
symkey = NULL ;
|
symkey = NULL ;
|
||||||
for( pos = 0, keyIt = m_tSymKeyList.begin() ; pos < position && keyIt != m_tSymKeyList.end() ; pos ++ , keyIt ++ ) ;
|
for( pos = 0, keyIt = m_tSymKeyList.begin() ; pos < position && keyIt != m_tSymKeyList.end() ; pos ++ , ++keyIt ) ;
|
||||||
|
|
||||||
if( pos == position && keyIt != m_tSymKeyList.end() )
|
if( pos == position && keyIt != m_tSymKeyList.end() )
|
||||||
symkey = *keyIt ;
|
symkey = *keyIt ;
|
||||||
@@ -332,7 +332,7 @@ SECKEYPublicKey* SecurityEnvironment_NssImpl :: getPubKey( unsigned int position
|
|||||||
unsigned int pos ;
|
unsigned int pos ;
|
||||||
|
|
||||||
pubkey = NULL ;
|
pubkey = NULL ;
|
||||||
for( pos = 0, keyIt = m_tPubKeyList.begin() ; pos < position && keyIt != m_tPubKeyList.end() ; pos ++ , keyIt ++ ) ;
|
for( pos = 0, keyIt = m_tPubKeyList.begin() ; pos < position && keyIt != m_tPubKeyList.end() ; pos ++ , ++keyIt ) ;
|
||||||
|
|
||||||
if( pos == position && keyIt != m_tPubKeyList.end() )
|
if( pos == position && keyIt != m_tPubKeyList.end() )
|
||||||
pubkey = *keyIt ;
|
pubkey = *keyIt ;
|
||||||
@@ -386,7 +386,7 @@ SECKEYPrivateKey* SecurityEnvironment_NssImpl :: getPriKey( unsigned int positio
|
|||||||
unsigned int pos ;
|
unsigned int pos ;
|
||||||
|
|
||||||
prikey = NULL ;
|
prikey = NULL ;
|
||||||
for( pos = 0, keyIt = m_tPriKeyList.begin() ; pos < position && keyIt != m_tPriKeyList.end() ; pos ++ , keyIt ++ ) ;
|
for( pos = 0, keyIt = m_tPriKeyList.begin() ; pos < position && keyIt != m_tPriKeyList.end() ; pos ++ , ++keyIt ) ;
|
||||||
|
|
||||||
if( pos == position && keyIt != m_tPriKeyList.end() )
|
if( pos == position && keyIt != m_tPriKeyList.end() )
|
||||||
prikey = *keyIt ;
|
prikey = *keyIt ;
|
||||||
|
Reference in New Issue
Block a user