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

@ -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) {