Fix for bug 221619. Tree widget refactoring and enhancement. r=neil sr=bryner

git-svn-id: svn://10.0.0.236/trunk@155017 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varga%nixcorp.com
2004-04-17 05:53:38 +00:00
parent 29a9e0f2ad
commit ce53bd6ec2
178 changed files with 5022 additions and 3728 deletions

View File

@@ -46,6 +46,8 @@ REQUIRES = xpcom \
string \
locale \
rdf \
dom \
layout \
$(NULL)
CPPSRCS = \

View File

@@ -34,6 +34,7 @@
* ***** END LICENSE BLOCK ***** */
#include "prprf.h"
#include "nsReadableUtils.h"
#include "mozSqlConnectionPgsql.h"
#include "mozSqlResultPgsql.h"

View File

@@ -106,7 +106,7 @@ mozSqlResultPgsql::BuildColumnInfo()
{
for (PRInt32 i = 0; i < PQnfields(mResult); i++) {
char* n = PQfname(mResult, i);
PRUnichar* name = UTF8ToNewUnicode(n);
PRUnichar* name = UTF8ToNewUnicode(nsDependentCString(n));
PRInt32 type = GetColType(i);
PRInt32 size = PQfsize(mResult, i);
PRInt32 mod = PQfmod(mResult, i);
@@ -140,7 +140,7 @@ mozSqlResultPgsql::BuildRows()
cell->SetNull(PR_FALSE);
PRInt32 type = cell->GetType();
if (type == mozISqlResult::TYPE_STRING)
cell->SetString(UTF8ToNewUnicode(value));
cell->SetString(UTF8ToNewUnicode(nsDependentCString(value)));
else if (type == mozISqlResult::TYPE_INT)
PR_sscanf(value, "%d", &cell->mInt);
else if (type == mozISqlResult::TYPE_FLOAT)