SVN Commit by dpage: r4155 - in trunk/pgadmin3/src: main schema

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4155 - in trunk/pgadmin3/src: main schema
Date: 2005-05-06 21:42:15
Message-ID: 200505062142.j46LgF6Z015999@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Author: dpage
Date: 2005-05-06 22:42:15 +0100 (Fri, 06 May 2005)
New Revision: 4155

Modified:
trunk/pgadmin3/src/main/events.cpp
trunk/pgadmin3/src/schema/pgDatabase.cpp
trunk/pgadmin3/src/schema/pgObject.cpp
Log:
Cleanup some GCC warnings

Modified: trunk/pgadmin3/src/main/events.cpp
===================================================================
--- trunk/pgadmin3/src/main/events.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/main/events.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -1256,7 +1256,6 @@

if (index >= 0)
{
- long firstSelected = index;
pgObject *data=collection->FindChild(browser, index);

if (!data || !data->CanDrop())

Modified: trunk/pgadmin3/src/schema/pgDatabase.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgDatabase.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/schema/pgDatabase.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -158,7 +158,7 @@

bool pgDatabase::ExecuteVoid(const wxString& sql)
{
- bool rc;
+ bool rc=0;
if (connection())
{
rc = connection()->ExecuteVoid(sql);

Modified: trunk/pgadmin3/src/schema/pgObject.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgObject.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/schema/pgObject.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -662,7 +662,7 @@

void pgServerObject::FillOwned(wxTreeCtrl *browser, ctlListView *referencedBy, const wxArrayString &dblist, const wxString &query)
{
- pgCollection *databases;
+ pgCollection *databases=0;

wxCookieType cookie;
wxTreeItemId item=browser->GetFirstChild(GetServer()->GetId(), cookie);

Browse pgadmin-hackers by date

  From Date Subject
Next Message OpenMacNews 2005-05-06 21:42:30 Re: svn access?"Can't connect to host
Previous Message svn 2005-05-06 21:16:44 SVN Commit by dpage: r4154 - trunk/pgadmin3/src