Commit cbf81a26 authored by Jarosław Staniek's avatar Jarosław Staniek

Add missing "explicit" C++ keywords

Performed using case-sensitive regexp search "^[ ]+[A-Z][a-zA-Z]+\([ A-Z].*" in Creator
parent ab5978ef
......@@ -57,7 +57,7 @@ public:
QStringList names();
protected:
DatabaseProperties(Connection *conn);
explicit DatabaseProperties(Connection *conn);
~DatabaseProperties();
QPointer<Connection> m_conn;
......
......@@ -302,7 +302,7 @@ protected:
You may also want to change options in DriverBehaviour *beh member.
See drivers/mySQL/mysqldriver.cpp for usage example.
*/
Driver(QObject *parent, const QVariantList &args = QVariantList());
explicit Driver(QObject *parent, const QVariantList &args = QVariantList());
/*! For reimplementation: creates and returns connection object
with additional structures specific for a given driver.
......
......@@ -50,7 +50,7 @@ static bool sqliteStringToBool(const QString& s)
class KexiDB::SQLiteCursorData : public SQLiteConnectionInternal
{
public:
SQLiteCursorData(Connection* conn)
explicit SQLiteCursorData(Connection* conn)
:
SQLiteConnectionInternal(conn)
// : curr_cols(0)
......
......@@ -694,7 +694,7 @@ protected:
Used internally by query schemas, e.g. to declare asterisks or
to add expression columns.
No other properties are set, so these should be set later. */
Field(QuerySchema *querySchema, BaseExpr* expr = 0);
explicit Field(QuerySchema *querySchema, BaseExpr* expr = 0);
/*! @internal Used by constructors. */
void init();
......
......@@ -122,7 +122,7 @@ public:
protected:
/* Constructs a new object.
\a handler can be provided to receive error messages. */
Object(MessageHandler* handler = 0);
explicit Object(MessageHandler* handler = 0);
virtual ~Object();
......
......@@ -65,7 +65,7 @@ namespace KexiDB
class QuerySchemaPrivate
{
public:
QuerySchemaPrivate(QuerySchema* q, QuerySchemaPrivate* copy = 0)
explicit QuerySchemaPrivate(QuerySchema* q, QuerySchemaPrivate* copy = 0)
: query(q)
, masterTable(0)
, fakeRowIDField(0)
......
......@@ -178,7 +178,7 @@ public:
protected:
/*! Automatically retrieves table schema via connection. */
TableSchema(Connection *conn, const QString & name = QString());
explicit TableSchema(Connection *conn, const QString & name = QString());
IndexSchema::List m_indices;
......
......@@ -32,7 +32,7 @@ using namespace KoProperty;
class EditorDataModel::Private
{
public:
Private(Set *_set, Set::Order _order = Set::InsertionOrder) : set(_set), order(_order)
explicit Private(Set *_set, Set::Order _order = Set::InsertionOrder) : set(_set), order(_order)
{
}
Set *set;
......
......@@ -47,7 +47,7 @@ using namespace KoProperty;
class EditorViewStyle : public KexiUtils::StyleProxy
{
public:
EditorViewStyle(QStyle* parentStyle) : KexiUtils::StyleProxy(parentStyle)
explicit EditorViewStyle(QStyle* parentStyle) : KexiUtils::StyleProxy(parentStyle)
{
}
......@@ -81,7 +81,7 @@ static bool computeAutoSync(Property *property, bool defaultAutoSync)
class ItemDelegate : public QItemDelegate
{
public:
ItemDelegate(QWidget *parent);
explicit ItemDelegate(QWidget *parent);
virtual ~ItemDelegate();
virtual void paint(QPainter *painter,
const QStyleOptionViewItem &option, const QModelIndex &index) const;
......
......@@ -36,7 +36,7 @@ namespace KoProperty
class SetPrivate
{
public:
SetPrivate(KoProperty::Set *set) :
explicit SetPrivate(KoProperty::Set *set) :
q(set),
readOnly(false),
informAboutClearing(0),
......
......@@ -73,7 +73,7 @@ static void paintListViewExpander(QPainter* p, QWidget* w, int height, const QPa
class GroupWidgetBase : public QWidget
{
public:
GroupWidgetBase(QWidget* parent)
explicit GroupWidgetBase(QWidget* parent)
: QWidget(parent)
, m_isOpen(true)
, m_mouseDown(false) {
......@@ -152,7 +152,7 @@ static void paintListViewExpander(QPainter* p, QWidget* w, int height, const QPa
/* class GroupWidget : public GroupWidgetBase
{
public:
GroupWidget(EditorGroupItem *parentItem)
explicit GroupWidget(EditorGroupItem *parentItem)
: GroupWidgetBase(parentItem->listView()->viewport())
, m_parentItem(parentItem) {
}
......
......@@ -174,7 +174,7 @@ K_GLOBAL_STATIC(CursorListData, s_cursorListData)
class CursorIconProvider : public ComboBox::Options::IconProviderInterface
{
public:
CursorIconProvider(QWidget* parent) : m_parent(parent) {}
explicit CursorIconProvider(QWidget* parent) : m_parent(parent) {}
virtual QIcon icon(int index) const
{
return s_cursorListData->pixmapForIndex(index, m_parent->palette());
......
......@@ -49,7 +49,7 @@ class FontEditRequester : public QWidget
Q_OBJECT
Q_PROPERTY(QFont value READ value WRITE setValue USER true)
public:
FontEditRequester(QWidget* parent)
explicit FontEditRequester(QWidget* parent)
: QWidget(parent)
, m_paletteChangedEnabled(true)
{
......
......@@ -199,7 +199,7 @@ KoReportDesigner::~KoReportDesigner()
}
///The loading Code
KoReportDesigner::KoReportDesigner(QWidget *parent, QDomElement data) : QWidget(parent), d(new Private())
KoReportDesigner::KoReportDesigner(QWidget *parent, const QDomElement &data) : QWidget(parent), d(new Private())
{
m_kordata = 0;
......
......@@ -78,7 +78,7 @@ public:
@param widget QWidget parent
@param element Report structure XML element
*/
KoReportDesigner(QWidget *, QDomElement);
KoReportDesigner(QWidget *, const QDomElement &data);
/**
@brief Desctructor
......
......@@ -76,7 +76,7 @@ public:
static void addPropertyAsAttribute(QDomElement* e, KoProperty::Property* p);
protected:
KoReportDesignerItemBase(KoReportDesigner*);
explicit KoReportDesignerItemBase(KoReportDesigner*);
KoReportDesigner* m_reportDesigner;
QString dataSourceAndObjectTypeName(const QString& dataSource, const QString& objectTypeName) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment