Hi Pepito,
Thanks, I put it into CVS.
Camiel.
On Sat, Mar 1, 2008 at 3:48 PM, Pepito Grillo
<pep...@ya...> wrote:
> Hi!
> a tiny patch to solve warnings about:
> warning: deprecated conversion from string constant to
> 'char*'
>
>
> Index: Configurator.cpp
> ===================================================================
> RCS file: /cvsroot/es40/es40/src/Configurator.cpp,v
> retrieving revision 1.18
> diff -r1.18 Configurator.cpp
> 478c478
> < char * CConfigurator::get_text_value(char * n, char
> * def)
> ---
> > char * CConfigurator::get_text_value(const char * n,
> char * def)
> 503c503
> < bool CConfigurator::get_bool_value(char * n, bool
> def)
> ---
> > bool CConfigurator::get_bool_value(const char * n,
> bool def)
> 537c537
> < int CConfigurator::get_int_value(char * n, int def)
> ---
> > int CConfigurator::get_int_value(const char * n, int
> def)
> Index: Configurator.h
> ===================================================================
> RCS file: /cvsroot/es40/es40/src/Configurator.h,v
> retrieving revision 1.10
> diff -r1.10 Configurator.h
> 103,104c103,104
> < char * get_text_value(char * n) { return
> get_text_value(n, (char*)0); };
> < char * get_text_value(char * n, char * def);
> ---
> > char * get_text_value(const char * n) { return
> get_text_value(n, (char*)0);
> > char * get_text_value(const char * n, char * def);
> 106,107c106,107
> < bool get_bool_value(char * n) { return
> get_bool_value(n, false); };
> < bool get_bool_value(char * n, bool def);
> ---
> > bool get_bool_value(const char * n) { return
> get_bool_value(n, false); };
> > bool get_bool_value(const char * n, bool def);
> 109,110c109,110
> < int get_int_value(char * n) { return
> get_int_value(n, 0); };
> < int get_int_value(char * n, int def);
> ---
> > int get_int_value(const char * n) { return
> get_int_value(n, 0); };
> > int get_int_value(const char * n, int def);
>
>
>
>
> ______________________________________________
> ¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Es40-developers mailing list
> Es4...@li...
> https://lists.sourceforge.net/lists/listinfo/es40-developers
>
|