summaryrefslogtreecommitdiff
path: root/rsc/source/prj/start.cxx
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-01-25 21:52:10 -0800
committerJoseph Powers <jpowers27@cox.net>2011-01-26 05:44:00 -0800
commit0f44da55121dde853e8e2efb3ac4c80f568909c7 (patch)
tree00e74cb872b90ef7611349cd8737ae78628c81a5 /rsc/source/prj/start.cxx
parent4f4bec90b8c07c3c0415de7860a560dd16f3ebae (diff)
Remove DECLARE_LIST( RscStrList, ByteString * )
Diffstat (limited to 'rsc/source/prj/start.cxx')
-rw-r--r--rsc/source/prj/start.cxx34
1 files changed, 12 insertions, 22 deletions
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 5dc44bfbdb37..ac3de52422fa 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -262,15 +262,14 @@ static BOOL CallRsc2( ByteString aRsc2Name,
fprintf( fRspFile, "%s", aSrsName.GetBuffer() );
#endif
- pString = pInputList->First();
- while( pString )
+ for ( size_t i = 0, n = pInputList->size(); i < n; ++i )
{
+ pString = (*pInputList)[ i ];
#ifdef OS2
fprintf( fRspFile, "%s\n", pString->GetBuffer() );
#else
fprintf( fRspFile, " %s", pString->GetBuffer() );
#endif
- pString = pInputList->Next();
};
fclose( fRspFile );
@@ -403,21 +402,21 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
else
{
// Eingabedatei
- aInputList.Insert( new ByteString( *ppStr ), CONTAINER_APPEND );
+ aInputList.push_back( new ByteString( *ppStr ) );
}
ppStr++;
i++;
}
- if( aInputList.Count() )
+ if( !aInputList.empty() )
{
/* build the output file names */
if( ! aResName.Len() )
- aResName = OutputFile( *aInputList.First(), "res" );
+ aResName = OutputFile( *aInputList[ 0 ], "res" );
if( ! bSetSrs )
{
aSrsName = "-fp=";
- aSrsName += OutputFile( *aInputList.First(), "srs" );
+ aSrsName += OutputFile( *aInputList[ 0 ], "srs" );
}
};
@@ -426,13 +425,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
bPrePro = FALSE;
bResFile = FALSE;
};
- if( bPrePro && aInputList.Count() )
+ if( bPrePro && !aInputList.empty() )
{
ByteString aTmpName;
- pString = aInputList.First();
- while( pString )
+ for ( size_t i = 0, n = aInputList.size(); i < n; ++i )
{
+ pString = aInputList[ i ];
aTmpName = ::GetTmpFileName();
if( !CallPrePro( aPrePro, *pString, aTmpName, &aCmdLine, bResponse ) )
{
@@ -440,8 +439,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
bError = TRUE;
break;
}
- aTmpList.Insert( new ByteString( aTmpName ), CONTAINER_APPEND );
- pString = aInputList.Next();
+ aTmpList.push_back( new ByteString( aTmpName ) );
};
};
@@ -458,16 +456,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
};
};
- pString = aTmpList.First();
- while( pString )
- {
- #if OSL_DEBUG_LEVEL > 5
- fprintf( stderr, "leaving temp file %s\n", pString->GetBuffer() );
- #else
- unlink( pString->GetBuffer() );
- #endif
- pString = aTmpList.Next();
- };
+ for ( size_t i = 0, n = aTmpList.size(); i < n; ++i )
+ unlink( aTmpList[ i ]->GetBuffer() );
return( bError );
}