Fix type inconsistency (#106)
This commit is contained in:
parent
b35fce9977
commit
bd56ba8f7a
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue