From 243b24b35c26fa0a25edcd185259cfd50d314610 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 15 Feb 2018 22:54:08 +0100 Subject: Use reinterpret_cast instead of C-style cast --- src/sqlitepp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sqlitepp.cpp b/src/sqlitepp.cpp index fa35b30..272284b 100644 --- a/src/sqlitepp.cpp +++ b/src/sqlitepp.cpp @@ -268,8 +268,8 @@ int ResultSet::readInt(const int column) const { std::string ResultSet::readString(const int column) const { m_statement->requireOpen(); m_statement->requireCanRead(); - return std::string((const char*) sqlite3_column_text(m_statement->m_handle, - column)); + return std::string(reinterpret_cast( + sqlite3_column_text(m_statement->m_handle, column))); } bool ResultSet::next() { -- cgit v1.2.3