~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "config.h"
30
30
#include "JSSQLResultSetRowList.h"
31
31
 
 
32
#if ENABLE(DATABASE)
 
33
 
32
34
#include "ExceptionCode.h"
33
35
#include "SQLValue.h"
34
36
#include "SQLResultSetRowList.h"
37
39
 
38
40
namespace WebCore {
39
41
 
40
 
JSValuePtr JSSQLResultSetRowList::item(ExecState* exec, const ArgList& args)
 
42
JSValue JSSQLResultSetRowList::item(ExecState* exec, const ArgList& args)
41
43
{
42
44
    bool indexOk;
43
 
    int index = args.at(exec, 0)->toInt32(exec, indexOk);
 
45
    int index = args.at(0).toInt32(exec, indexOk);
44
46
    if (!indexOk) {
45
47
        setDOMException(exec, TYPE_MISMATCH_ERR);
46
48
        return jsUndefined();
56
58
    unsigned valuesIndex = index * numColumns;
57
59
    for (unsigned i = 0; i < numColumns; i++) {
58
60
        const SQLValue& value = m_impl->values()[valuesIndex + i];
59
 
        JSValuePtr jsValue = noValue();
 
61
        JSValue jsValue;
60
62
 
61
63
        switch (value.type()) {
62
64
            case SQLValue::StringValue:
79
81
}
80
82
 
81
83
}
 
84
 
 
85
#endif