Fix some warning

This commit is contained in:
eelke 2018-08-05 09:05:24 +02:00
parent ec8c3ff5ec
commit 31afc6fcbf
3 changed files with 5 additions and 4 deletions

View file

@ -5,7 +5,8 @@
* https://stackoverflow.com/questions/5423058/qfuture-that-can-be-cancelled-and-report-progress
*/
#include "TaskControl.h"
//#include "TaskControl.h"
class TaskControl;
template <class T>
class ControllableTask

View file

@ -9,5 +9,5 @@ std::shared_ptr<SqlAst::Expression> parseExpression(SqlParser &parser)
// number
// symbol
// left parenthesis
return nullptr;
}

View file

@ -538,7 +538,7 @@ void QueryTab::markError(const Pgsql::ErrorDetails &details)
int length = 0;
if (details.state == "42703") {
int pos = details.messagePrimary.find('"');
std::size_t pos = details.messagePrimary.find('"');
if (pos != std::string::npos) {
int pos2 = details.messagePrimary.find('"', pos+1);
if (pos2 != std::string::npos) {
@ -547,7 +547,7 @@ void QueryTab::markError(const Pgsql::ErrorDetails &details)
}
}
else if (details.state == "42P01") {
int pos = details.messagePrimary.find('"');
std::size_t pos = details.messagePrimary.find('"');
if (pos != std::string::npos) {
int pos2 = details.messagePrimary.find('"', pos+1);
if (pos2 != std::string::npos) {