use ARRAYSIZE macro

This commit is contained in:
Chris Danford
2003-08-02 20:05:46 +00:00
parent f8e4fc2d9c
commit e892ecc027
6 changed files with 7 additions and 10 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ bool NotesLoader::Loadable( CString sPath )
void NotesLoader::GetMainAndSubTitlesFromFullTitle( const CString sFullTitle, CString &sMainTitleOut, CString &sSubTitleOut )
{
const CString sLeftSeps[] = { " -", " ~", " (", " [" };
int iNumSeps = sizeof(sLeftSeps)/sizeof(CString);
for( int i=0; i<iNumSeps; i++ )
for( int i=0; i<ARRAYSIZE(sLeftSeps); i++ )
{
int iBeginIndex = sFullTitle.Find( sLeftSeps[i] );
if( iBeginIndex == -1 )