summaryrefslogtreecommitdiff
path: root/transex3/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:23:13 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:23:13 +0000
commit8267fd75e07ebea6e139c72363b75bbc3220aed1 (patch)
treeb0013289a5b90213f3b3a8cf4e683f9ac307b7d1 /transex3/source
parent7d7d91497efb4b107dfa9dfbdd6edcf9f5e607b1 (diff)
INTEGRATION: CWS warnings01 (1.14.16); FILE MERGED
2005/11/07 12:46:44 ihi 1.14.16.2: #i57362# Remove warnings 2005/10/21 12:56:03 pl 1.14.16.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'transex3/source')
-rw-r--r--transex3/source/lngex.cxx32
1 files changed, 17 insertions, 15 deletions
diff --git a/transex3/source/lngex.cxx b/transex3/source/lngex.cxx
index d211810bd17a..afc2876be1db 100644
--- a/transex3/source/lngex.cxx
+++ b/transex3/source/lngex.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: lngex.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 15:00:52 $
+ * last change: $Author: hr $ $Date: 2006-06-19 17:23:13 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -83,41 +83,43 @@ BOOL ParseCommandLine( int argc, char* argv[])
// parse command line
for( int i = 1; i < argc; i++ ) {
- if ( ByteString( argv[ i ]).ToUpperAscii() == "-I" ) {
+ ByteString sSwitch( argv[ i ] );
+ sSwitch.ToUpperAscii();
+ if ( sSwitch == "-I" ) {
nState = STATE_INPUT; // next tokens specifies source files
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-O" ) {
+ else if ( sSwitch == "-O" ) {
nState = STATE_OUTPUT; // next token specifies the dest file
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-P" ) {
+ else if ( sSwitch == "-P" ) {
nState = STATE_PRJ; // next token specifies the cur. project
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-R" ) {
+ else if ( sSwitch == "-R" ) {
nState = STATE_ROOT; // next token specifies path to project root
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-QQ" ) {
+ else if ( sSwitch == "-QQ" ) {
bQuiet = true;
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-M" ) {
+ else if ( sSwitch == "-M" ) {
nState = STATE_MERGESRC; // next token specifies the merge database
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-E" ) {
+ else if ( sSwitch == "-E" ) {
nState = STATE_ERRORLOG;
bErrorLog = FALSE;
}
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-UTF8" ) {
+ else if ( sSwitch == "-UTF8" ) {
nState = STATE_UTF8;
bUTF8 = TRUE;
}
-/* else if ( ByteString( argv[ i ]).ToUpperAscii() == "-NOUTF8" ) {
+/* else if ( sSwitch == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = FALSE;
- }
-/* else if ( ByteString( argv[ i ]).ToUpperAscii() == "-ULF" ) {
+ }*/
+/* else if ( sSwitch == "-ULF" ) {
nState = STATE_ULF;
bULF = TRUE;
}*/
- else if ( ByteString( argv[ i ]).ToUpperAscii() == "-L" ) {
+ else if ( sSwitch == "-L" ) {
nState = STATE_LANGUAGES;
}
else {
@@ -125,7 +127,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
case STATE_NON: {
return FALSE; // no valid command line
}
- break;
+ //break;
case STATE_INPUT: {
sInputFile = argv[ i ];
bInput = TRUE; // source file found