diff --git a/README.md b/README.md index 7aa28dc..9af5aba 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ To use the SQL parser in your own projects you simply have to follow these few s if (result.isValid() && result.size() > 0) { const hsql::SQLStatement* statement = result.getStatement(0); - if (statement.isType(hsql::SelectStatement)) { - const hsql::SelectStatement* select = (const hsql::SelectStatement*) statement; + if (statement->isType(hsql::kStmtSelect)) { + const auto* select = static_cast statement; /* ... */ } }