summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-01-23 19:31:48 -0800
committerJoseph Powers <jpowers27@cox.net>2011-01-23 19:31:48 -0800
commit8650fdf601176d00cae9bf49b9932257095c3f43 (patch)
treebf0f7e23b9582847af9a3a1ef29d3df636470b53 /l10ntools
parent70f88f0abddcf7b13e191f15b9d1e75d7a0b4525 (diff)
Remove DECLARE_LIST( FileList, ByteString* )
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index bcb1cb1273f7..865065b31191 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -35,6 +35,7 @@
#include "tokens.h"
#include "utf8conv.hxx"
#include <iostream>
+#include <vector>
extern "C" { int yyerror( char * ); }
extern "C" { int YYWarning( char * ); }
@@ -55,7 +56,7 @@ Export *pExport = 0L;
#define STATE_LANGUAGES 0X000B
// set of global variables
-DECLARE_LIST( FileList, ByteString * )
+typedef ::std::vector< ByteString* > FileList;
FileList aInputFileList;
BOOL bEnableExport;
BOOL bMergeMode;
@@ -151,7 +152,7 @@ extern char *GetOutputFile( int argc, char* argv[])
return NULL; // no valid command line
}
case STATE_INPUT: {
- aInputFileList.Insert( new ByteString( argv[ i ]), LIST_APPEND );
+ aInputFileList.push_back( new ByteString( argv[ i ] ) );
bInput = TRUE; // min. one source file found
}
break;
@@ -219,7 +220,7 @@ int EndExport()
extern const char* getFilename()
{
- return (*(aInputFileList.GetObject( 0 ))).GetBuffer();
+ return (*(aInputFileList[ 0 ])).GetBuffer();
}
/*****************************************************************************/
extern FILE *GetNextFile()
@@ -233,14 +234,14 @@ extern FILE *GetNextFile()
aTemp.Kill();
}
- while ( aInputFileList.Count()) {
- ByteString sFileName( *(aInputFileList.GetObject( 0 )));
+ while ( !aInputFileList.empty() ) {
+ ByteString sFileName( *(aInputFileList[ 0 ]) );
ByteString sOrigFile( sFileName );
sFileName = Export::GetNativeFile( sFileName );
- delete aInputFileList.GetObject(( ULONG ) 0 );
- aInputFileList.Remove(( ULONG ) 0 );
+ delete aInputFileList[ 0 ];
+ aInputFileList.erase( aInputFileList.begin() );
if ( sFileName == "" ) {
fprintf( stderr, "ERROR: Could not precompile File %s\n",