Kaydet (Commit) 900ac1c4 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.5.6); FILE MERGED

2005/09/22 22:37:54 sb 1.5.6.2: RESYNC: (1.5-1.6); FILE MERGED
2005/09/14 10:21:51 sb 1.5.6.1: #i53898# Made code warning-free.
üst b711e702
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: getopt.cxx,v $ * $RCSfile: getopt.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: rt $ $Date: 2005-09-09 12:07:04 $ * last change: $Author: hr $ $Date: 2006-06-20 02:28:11 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -146,7 +146,7 @@ GetOpt::~GetOpt() { ...@@ -146,7 +146,7 @@ GetOpt::~GetOpt() {
* @return void * @return void
*/ */
//> initialize //> initialize
void GetOpt::initialize( char* cmdLine[], char* optSet[] ) { void GetOpt::initialize( char* cmdLine[], char const * optSet[] ) {
while ( *cmdLine ) { while ( *cmdLine ) {
m_cmdline.push_back( rtl::OString( *cmdLine ) ); m_cmdline.push_back( rtl::OString( *cmdLine ) );
...@@ -214,8 +214,6 @@ void GetOpt::createCmdLineOptions() { ...@@ -214,8 +214,6 @@ void GetOpt::createCmdLineOptions() {
// get iterator of comandline vector // get iterator of comandline vector
vector< rtl::OString >::iterator iter = m_cmdline.begin(); vector< rtl::OString >::iterator iter = m_cmdline.begin();
int nSize = m_cmdline.size();
// extract first comandlineparameter as program name // extract first comandlineparameter as program name
m_prgname = (*iter); m_prgname = (*iter);
iter++; iter++;
...@@ -496,7 +494,7 @@ void GetOpt::replVars() { ...@@ -496,7 +494,7 @@ void GetOpt::replVars() {
// process vector of lines containing variables // process vector of lines containing variables
vector< rtl::OString >::iterator iter = m_varvec.begin(); vector< rtl::OString >::iterator iter = m_varvec.begin();
while ( iter != m_varvec.end() ) { while ( iter != m_varvec.end() ) {
sal_uInt32 index = 0; sal_Int32 index = 0;
while ( ( index = (*iter).indexOf( m_vardelim ) ) != -1 ) { while ( ( index = (*iter).indexOf( m_vardelim ) ) != -1 ) {
vector< rtl::OString > varLineTok; vector< rtl::OString > varLineTok;
rtl::OString varKey( "-" ); rtl::OString varKey( "-" );
...@@ -920,7 +918,7 @@ ValueNotFoundException::ValueNotFoundException() ...@@ -920,7 +918,7 @@ ValueNotFoundException::ValueNotFoundException()
//--------------------------------------------------------------------- //---------------------------------------------------------------------
ValueNotFoundException::ValueNotFoundException(char const* sException) ValueNotFoundException::ValueNotFoundException(char const* sException)
: Exception( rtl::OString(RTL_CONSTASCII_STRINGPARAM(c_sValueNotFoundException)) += sException) : Exception( rtl::OString(RTL_CONSTASCII_STRINGPARAM(c_sValueNotFoundException)) + sException)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment