Re: pgAdmin III commit: Include a variant of sysSettings::Write() that take

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: pgAdmin III commit: Include a variant of sysSettings::Write() that take
Дата
Msg-id AANLkTimikMhxmgJOrLfRhvNL21GoPeE2wvqZTyf4VLxH@mail.gmail.com
обсуждение исходный текст
Ответ на pgAdmin III commit: Include a variant of sysSettings::Write() that take  (Dave Page <dpage@pgadmin.org>)
Ответы Re: pgAdmin III commit: Include a variant of sysSettings::Write() that take  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
On 16 February 2011 15:47, Dave Page <dpage@pgadmin.org> wrote:
> Include a variant of sysSettings::Write() that takes a wxChar* value
> to write, as they are currently being cast to bools and stored as
> true/false.

I anticipated this, and my latest patch doesn't have this problem -
it's the same situation as ctlListView, where we changed
AppendItem(const wxString&, bool) to AppendYesNoItem(const wxString&,
bool). I changed bool Write(const wxString&, bool) to bool
WriteBool(const wxString&, bool) in sysSettings's case.

I think that we perhaps overload too much in both of those classes.
The only reason that a call like this doesn't work with my code
presently:

sysSettings foo;
foo.Write(true);

is because we have an ambiguous conversion error (should it be a long
or an int?).


--
Regards,
Peter Geoghegan

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: pgAdmin III commit: Quick fix for a registry datatype issue on Windows,
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: phase 2 of wxWidgets 2.9 build