Bläddra i källkod

changed GetAt() to ElementAt() in 6.0 GetAt doesn't return the reference, ElementAt does -- SAB

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@35 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 22 år sedan
förälder
incheckning
5586285258
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      ProcessCopy.cpp

+ 2 - 2
ProcessCopy.cpp

@@ -84,7 +84,7 @@ CClipFormat* pCF;
 int count = GetSize();
 int count = GetSize();
 	for( int i=0; i < count; i++ )
 	for( int i=0; i < count; i++ )
 	{
 	{
-		pCF = &GetAt(i);
+		pCF = &ElementAt(i);
 		if( pCF->m_cfType == cfType )
 		if( pCF->m_cfType == cfType )
 			return pCF;
 			return pCF;
 	}
 	}
@@ -477,7 +477,7 @@ bool CClip::AddToDataTable()
 
 
 		for( int i = m_Formats.GetSize()-1; i >= 0 ; i-- )
 		for( int i = m_Formats.GetSize()-1; i >= 0 ; i-- )
 		{
 		{
-			pCF = & m_Formats[i];
+			pCF = & m_Formats.ElementAt(i);
 
 
 			recset.AddNew();
 			recset.AddNew();