Fix warnings and dependencies
This commit is contained in:
parent
86a9a0d709
commit
ee86327869
14 changed files with 38 additions and 43 deletions
|
|
@ -207,7 +207,7 @@ bool ConnectionController::retrieveFromPasswordManager(const std::string &passwo
|
|||
password = m_passwordManager->decrypt(password_id, enc_password);
|
||||
return true;
|
||||
}
|
||||
catch (const PasswordManagerException &ex)
|
||||
catch (const PasswordManagerException &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
#include "catalog/PgDatabaseCatalog.h"
|
||||
#include "catalog/PgDatabaseContainer.h"
|
||||
#include "catalog/PgAuthIdContainer.h"
|
||||
#include "ResultTableModelUtil.h"
|
||||
#include <QtConcurrent>
|
||||
#include "Pgsql_Connection.h"
|
||||
|
||||
|
|
@ -31,7 +30,7 @@ void DatabasesTableModel::setDatabaseList(std::shared_ptr<const PgDatabaseCatalo
|
|||
for (const auto& d : *dats)
|
||||
{
|
||||
databases.emplace_back(d);
|
||||
oidIndex.emplace(d.oid(), databases.size() - 1);
|
||||
oidIndex.emplace(d.oid(), static_cast<int>(databases.size() - 1));
|
||||
}
|
||||
StartLoadDatabaseSizes(std::move(oidIndex));
|
||||
}
|
||||
|
|
@ -90,7 +89,7 @@ QVariant DatabasesTableModel::headerData(int section, Qt::Orientation orientatio
|
|||
int DatabasesTableModel::rowCount(const QModelIndex &) const
|
||||
{
|
||||
int result = 0;
|
||||
result = databases.size();
|
||||
result = static_cast<int>(databases.size());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -586,7 +586,9 @@ void QueryTool::generateCode()
|
|||
{
|
||||
QString command = getCommand();
|
||||
if (resultList.empty()) {
|
||||
QMessageBox::question(this, "pglab", tr("Please execute the query first"), QMessageBox::Ok);
|
||||
QMessageBox::question(this, "pglab", tr("Please execute the query first"),
|
||||
QMessageBox::StandardButtons(QMessageBox::Ok),
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
if (resultList.size() == 1) {
|
||||
std::shared_ptr<const Pgsql::Result> dbres = resultList[0]->GetPgsqlResult();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue