[Open Office] Some fixes to ooo-build

Martin Kretzschmar m_kretzschmar at gmx.net
Wed Feb 1 07:07:09 EST 2006


Hi

On 2/1/06, Hanno Meyer-Thurow <h.mth at web.de> wrote:
> Hi list!
> I have three fixes to ooo-build. Before I commit them I would like you
> to have a look at them. If there is any problem.


buildfix-mdbtools.diff:
 +		    Sequence< Any > row( sql->num_columns );
 +	  		for (j=0;j<sql->num_columns;j++) {
 +				sqlcol = (MdbSQLColumn*) g_ptr_array_index(sql->columns,j);
-+				sTemp = rtl::OString (sql->bound_values[j]);
++				sTemp = rtl::OString (static_cast<char *>(sql->bound_values[j]));
 +				row[j] <<= rtl::OStringToOUString(sTemp, RTL_TEXTENCODING_UTF8);
 +				//fprintf(stdout, "%s%s", sql->bound_values[j], "|");
 +			}

Nothing against your patch, but wouldn't it be better to convert
directly from char* to OUString and eliminate sTemp completely?

Regards,

Martin


More information about the Openoffice mailing list