Skip to content

Commit

Permalink
renamed to QList<QVariant> to follow code style
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 2, 2024
1 parent a183a5e commit 74bb99f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/common/include/orm/drivers/sqlquery.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ namespace Orm::Drivers
/*! Get the placeholder value at the given index position. */
QVariant boundValue(size_type index) const;
/*! Get a QVariant vector of all bound values. */
QVariantList boundValues() const;
QList<QVariant> boundValues() const;

/* Result sets */
/*! Get a SqlRecord containing the field information for the current query. */
Expand Down
4 changes: 2 additions & 2 deletions drivers/common/include/orm/drivers/sqlresult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ namespace Orm::Drivers
size_type boundValuesCount() const noexcept;

/*! Get a QVariant vector of all bound values. */
QVariantList boundValues() const noexcept;
QList<QVariant> boundValues() const noexcept;
/*! Get a reference to the QVariant vector of all bound values. */
QVariantList &boundValues() noexcept;
QList<QVariant> &boundValues() noexcept;

/*! Clear all bound values. */
void clearBoundValues();
Expand Down
2 changes: 1 addition & 1 deletion drivers/common/src/orm/drivers/sqlquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ QVariant SqlQuery::boundValue(const size_type index) const
return m_sqlResult->boundValue(index);
}

QVariantList SqlQuery::boundValues() const
QList<QVariant> SqlQuery::boundValues() const
{
return m_sqlResult->boundValues();
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/common/src/orm/drivers/sqlresult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ SqlResult::size_type SqlResult::boundValuesCount() const noexcept
return static_cast<size_type>(d->boundValues.size());
}

QVariantList SqlResult::boundValues() const noexcept
QList<QVariant> SqlResult::boundValues() const noexcept
{
Q_D(const SqlResult);
return d->boundValues;
}

QVariantList &SqlResult::boundValues() noexcept
QList<QVariant> &SqlResult::boundValues() noexcept
{
Q_D(SqlResult);
return d->boundValues;
Expand Down

0 comments on commit 74bb99f

Please sign in to comment.