Fix type inconsistency (#106)

This commit is contained in:
mrks 2018-11-17 12:10:39 +01:00 committed by GitHub
parent b35fce9977
commit bd56ba8f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -32,11 +32,11 @@ namespace hsql {
statements_.push_back(stmt); statements_.push_back(stmt);
} }
const SQLStatement* SQLParserResult::getStatement(int index) const { const SQLStatement* SQLParserResult::getStatement(size_t index) const {
return statements_[index]; return statements_[index];
} }
SQLStatement* SQLParserResult::getMutableStatement(int index) { SQLStatement* SQLParserResult::getMutableStatement(size_t index) {
return statements_[index]; return statements_[index];
} }

View File

@ -48,10 +48,10 @@ namespace hsql {
void addStatement(SQLStatement* stmt); void addStatement(SQLStatement* stmt);
// Gets the SQL statement with the given index. // Gets the SQL statement with the given index.
const SQLStatement* getStatement(int index) const; const SQLStatement* getStatement(size_t index) const;
// Gets the non const SQL statement with the given index. // Gets the non const SQL statement with the given index.
SQLStatement* getMutableStatement(int index); SQLStatement* getMutableStatement(size_t index);
// Get the list of all statements. // Get the list of all statements.
const std::vector<SQLStatement*>& getStatements() const; const std::vector<SQLStatement*>& getStatements() const;