value passed to bindDataParameter should be declared const, NOT PART OF THE BUILD

This commit is contained in:
darin%meer.net 2004-10-20 04:08:55 +00:00
Родитель 8f7328158d
Коммит 8df450478c
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -78,7 +78,7 @@ interface mozIStorageStatement : mozIStorageValueArray {
void bindNullParameter (in unsigned long aParamIndex);
void bindDataParameter (in unsigned long aParamIndex, [array,size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
void bindDataParameter (in unsigned long aParamIndex, [array,const,size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
// void bindParameters (in string aFormatString, ...);

Просмотреть файл

@ -347,9 +347,9 @@ mozStorageStatement::BindNullParameter(PRUint32 aParamIndex)
return NS_OK;
}
/* void bindDataParameter (in unsigned long aParamIndex, [array, size_is (aValueSize)] in octet aValue, in unsigned long aValueSize); */
/* void bindDataParameter (in unsigned long aParamIndex, [array, const, size_is (aValueSize)] in octet aValue, in unsigned long aValueSize); */
NS_IMETHODIMP
mozStorageStatement::BindDataParameter(PRUint32 aParamIndex, PRUint8 *aValue, PRUint32 aValueSize)
mozStorageStatement::BindDataParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize)
{
NS_ASSERTION (mDBConnection && mDBStatement, "statement not initialized");
if (aParamIndex < 0 || aParamIndex >= mParamCount)