Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexidb/kexidbfieldlist.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | { | 51 | { | ||
52 | KDbField* field = m_fieldlist->field(name); | 52 | KDbField* field = m_fieldlist->field(name); | ||
53 | return field ? new KexiDBField(this, field, false) : 0; | 53 | return field ? new KexiDBField(this, field, false) : 0; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | bool KexiDBFieldList::hasField(QObject* field) | 56 | bool KexiDBFieldList::hasField(QObject* field) | ||
57 | { | 57 | { | ||
58 | KexiDBField* f = dynamic_cast<KexiDBField*>(field); | 58 | KexiDBField* f = dynamic_cast<KexiDBField*>(field); | ||
59 | return f ? m_fieldlist->hasField(f->field()) : false; | 59 | return f ? m_fieldlist->hasField(*f->field()) : false; | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | const QStringList KexiDBFieldList::names() const | 62 | QStringList KexiDBFieldList::names() const | ||
staniek: const QStringList -> QStringList | |||||
piggz: what about other const QStringList eg in KexiDBConnection | |||||
staniek: Yep, massive change for all these const is OK. | |||||
63 | { | 63 | { | ||
64 | return m_fieldlist->names(); | 64 | return m_fieldlist->names(); | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | bool KexiDBFieldList::addField(QObject* field) | 67 | bool KexiDBFieldList::addField(QObject* field) | ||
68 | { | 68 | { | ||
69 | KexiDBField* f = dynamic_cast<KexiDBField*>(field); | 69 | KexiDBField* f = dynamic_cast<KexiDBField*>(field); | ||
70 | return f && m_fieldlist->addField(f->field()); | 70 | return f && m_fieldlist->addField(f->field()); | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
const QStringList -> QStringList