From a18f03e0bc29a69bcfd1b99a1b0551d4628358cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=A4=A9=E7=BF=BC?= Date: Wed, 3 Jun 2020 23:38:03 +0800 Subject: [PATCH] refine example in README.md Signed-off-by: TennyZhuang --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7aa28dc..5a1fab7 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::kSelectStmt)) { + const auto* select = static_cast statement; /* ... */ } }