summaryrefslogtreecommitdiff
path: root/rdbmaker
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 03:10:27 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 03:10:27 +0000
commit50724e71f13bcf9526f0cefc12d6d682dbb9759b (patch)
tree08b057d2bcaf3162899149dd06fbd917a9fe4a49 /rdbmaker
parent7c2249f5be09d05717aad5692569ece331c64efe (diff)
INTEGRATION: CWS warnings01 (1.4.76); FILE MERGED
2005/09/23 00:25:13 sb 1.4.76.3: RESYNC: (1.4-1.5); FILE MERGED 2005/09/07 13:50:21 sb 1.4.76.2: #i53898# Made code warning-free. 2005/09/01 07:48:39 sb 1.4.76.1: #i53898# Made code warning-free.
Diffstat (limited to 'rdbmaker')
-rw-r--r--rdbmaker/source/rdbmaker/rdboptions.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/rdbmaker/source/rdbmaker/rdboptions.cxx b/rdbmaker/source/rdbmaker/rdboptions.cxx
index 7dc65ffa275a..826493906836 100644
--- a/rdbmaker/source/rdbmaker/rdboptions.cxx
+++ b/rdbmaker/source/rdbmaker/rdboptions.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: rdboptions.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 05:05:35 $
+ * last change: $Author: hr $ $Date: 2006-06-20 04:10:27 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -63,7 +63,7 @@ sal_Bool RdbOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
}
char *s=NULL;
- for (i; i < ac; i++)
+ for (; i < ac; i++)
{
if (av[i][0] == '-')
{
@@ -297,7 +297,6 @@ sal_Bool RdbOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
break;
default:
throw IllegalArgument("the option is unknown" + OString(av[i]));
- break;
}
} else
{
@@ -323,9 +322,9 @@ sal_Bool RdbOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
ret = initOptions(rargc, rargv, bCmdFile);
- for (long i=0; i < rargc; i++)
+ for (long j=0; j < rargc; j++)
{
- free(rargv[i]);
+ free(rargv[j]);
}
}
} else
@@ -345,8 +344,8 @@ OString RdbOptions::prepareHelp()
help += "The rdbmaker supports 2 modes:\n";
help += " 1. using the internal UNO type description manager -> use -R<regname>\n"
" where regname specifies the type library used by the UNO type description manager\n"
- " after UNO is bootstrapped. This option disables the use of any other type libraries.\n";
- " The tpye library must be a valid product type library which means that all types are\n";
+ " after UNO is bootstrapped. This option disables the use of any other type libraries.\n"
+ " The tpye library must be a valid product type library which means that all types are\n"
" stored under the global base node UCR (Uno Core Reflection data).\n";
help += " 2. using one or more type library files -> use file_1 ... file_n\n"
" file_1 .. file_n specifies one or more valid type library files which are used to\n"