aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-02-15 22:54:08 +0100
committerRobin Krahl <me@robin-krahl.de>2018-02-15 22:54:08 +0100
commit243b24b35c26fa0a25edcd185259cfd50d314610 (patch)
treec1c68af808c5d22693825f3b5b4a4508433eddf9
parentd012b9c1a4ee34d2bcdc7380b361b3fb6345dd95 (diff)
downloadsqlitepp-243b24b35c26fa0a25edcd185259cfd50d314610.tar.gz
sqlitepp-243b24b35c26fa0a25edcd185259cfd50d314610.tar.bz2
Use reinterpret_cast instead of C-style cast
-rw-r--r--src/sqlitepp.cpp4
1 files changed, 2 insertions, 2 deletions
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<const char*>(
+ sqlite3_column_text(m_statement->m_handle, column)));
}
bool ResultSet::next() {