Fixed several warnings.
This commit is contained in:
parent
2ad4a2601f
commit
0b088a2723
6 changed files with 11 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#include "ASyncDBConnection.h"
|
||||
#include "ASyncDBConnection.h"
|
||||
#include "ScopeGuard.h"
|
||||
#include <chrono>
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ void ASyncDBConnection::setupConnection(const ConnectionConfig &config)
|
|||
}
|
||||
}
|
||||
|
||||
void ASyncDBConnection::async_connect_handler(boost::system::error_code ec, std::size_t s)
|
||||
void ASyncDBConnection::async_connect_handler(boost::system::error_code ec, std::size_t /*s*/)
|
||||
{
|
||||
// boost::asio::error::operation_aborted
|
||||
if (ec == boost::system::errc::success) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "Pgsql_Result.h"
|
||||
|
||||
|
||||
QString CodeBuilder::GenClassDefinition(const Pgsql::Result &result) const
|
||||
QString CodeBuilder::GenClassDefinition(const Pgsql::Result &/*result*/) const
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,17 +55,17 @@ QVariant ColumnTableModel::headerData(int section, Qt::Orientation orientation,
|
|||
return v;
|
||||
}
|
||||
|
||||
int ColumnTableModel::rowCount(const QModelIndex &parent) const
|
||||
int ColumnTableModel::rowCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
return m_columns.size();
|
||||
}
|
||||
|
||||
int ColumnTableModel::columnCount(const QModelIndex &parent) const
|
||||
int ColumnTableModel::columnCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
return colCount;
|
||||
}
|
||||
|
||||
Oid ColumnTableModel::getType(int column) const
|
||||
Oid ColumnTableModel::getType(int /*column*/) const
|
||||
{
|
||||
Oid oid = Pgsql::VARCHAROID;
|
||||
// switch (column) {
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ void MainWindow::on_actionCancel_triggered()
|
|||
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event)
|
||||
void MainWindow::closeEvent(QCloseEvent* /*event*/)
|
||||
{
|
||||
// TODO collect which files need saving
|
||||
// std::vector<QString> files_to_save;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ QVariant RolesTableModel::headerData(int section, Qt::Orientation orientation, i
|
|||
return v;
|
||||
}
|
||||
|
||||
int RolesTableModel::rowCount(const QModelIndex &parent) const
|
||||
int RolesTableModel::rowCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
int result = 0;
|
||||
if (m_roles) {
|
||||
|
|
@ -65,7 +65,7 @@ int RolesTableModel::rowCount(const QModelIndex &parent) const
|
|||
return result;
|
||||
}
|
||||
|
||||
int RolesTableModel::columnCount(const QModelIndex &parent) const
|
||||
int RolesTableModel::columnCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
int result = 10;
|
||||
// if (parent.isValid())
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ TypeSelectionItemModel::TypeSelectionItemModel(QObject *parent)
|
|||
{
|
||||
}
|
||||
|
||||
int TypeSelectionItemModel::rowCount(const QModelIndex &parent) const
|
||||
int TypeSelectionItemModel::rowCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
int result = m_types.size();
|
||||
// if (!parent.isValid()) {
|
||||
|
|
@ -16,7 +16,7 @@ int TypeSelectionItemModel::rowCount(const QModelIndex &parent) const
|
|||
return result;
|
||||
}
|
||||
|
||||
int TypeSelectionItemModel::columnCount(const QModelIndex &parent) const
|
||||
int TypeSelectionItemModel::columnCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
int result = 1;
|
||||
// if (parent.isValid())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue