Re: Small annoyance in pgAdmin 1.10

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Small annoyance in pgAdmin 1.10
Дата
Msg-id 937d27e10908100617l67d9e990s706331f1f45bd2f4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Small annoyance in pgAdmin 1.10  (Dave Page <dpage@pgadmin.org>)
Ответы Re: Small annoyance in pgAdmin 1.10
Список pgadmin-support
On Mon, Aug 10, 2009 at 2:08 PM, Dave Page<dpage@pgadmin.org> wrote:
> On Mon, Aug 10, 2009 at 2:03 PM, Dave Page<dpage@pgadmin.org> wrote:
>>> If I can't use a pointer, I don't see how I can do this. Or should I just
>>> remove the MessageBox?
>>>
>>> As per my understanding, you always can use reference in place of pointer.
>>
>> Yes, just pass by reference:
>>
>> bool generateSQL(const wxString &query);
>
> Of course, you might want to leave out the const decoration.

Looking at this a little more closely, why not just add a new function:

int gqbController::getTableCount() { return model->tablesCount(); }

and call that from frmQuery? Assuming it can't already see model....

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com


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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Small annoyance in pgAdmin 1.10
Следующее
От: "Luiz K. Matsumura"
Дата:
Сообщение: Feature request - View Filtered rows