diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-27 21:42:58 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-27 21:42:58 +0200 |
commit | d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50 (patch) | |
tree | 474ec7369f0d367d7780f73901d38d1daec4d2eb /src/account-server/storage.cpp | |
parent | 2c14cd30ecbacbd5a808cb2641d40f6d568ec294 (diff) | |
download | manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.gz manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.bz2 manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.xz manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.zip |
Use nullptr instead of NULL everywhere
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r-- | src/account-server/storage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp index dd8cf9ac..1560547f 100644 --- a/src/account-server/storage.cpp +++ b/src/account-server/storage.cpp @@ -56,7 +56,7 @@ static const char *DB_VERSION_PARAMETER = "database_version"; * SQLite3 specificities: * - any column (but only one for each table) with the exact type of * 'INTEGER PRIMARY KEY' is taken as auto-increment. - * - the supported data types are: NULL, INTEGER, REAL, TEXT and BLOB + * - the supported data types are: nullptr, INTEGER, REAL, TEXT and BLOB * (http://www.sqlite.org/datatype3.html) * - the size of TEXT cannot be set, it is just ignored by the engine. * - IMPORTANT: foreign key constraints are not yet supported @@ -1912,7 +1912,7 @@ void Storage::storeLetter(Letter *letter) { // The letter was never saved before sql << "INSERT INTO " << POST_TBL_NAME << " VALUES ( " - << "NULL, " + << "nullptr, " << letter->getSender()->getDatabaseID() << ", " << letter->getReceiver()->getDatabaseID() << ", " << letter->getExpiry() << ", " @@ -2207,7 +2207,7 @@ void Storage::addTransaction(const Transaction &trans) { std::stringstream sql; sql << "INSERT INTO " << TRANSACTION_TBL_NAME - << " VALUES (NULL, " << trans.mCharacterId << ", " + << " VALUES (nullptr, " << trans.mCharacterId << ", " << trans.mAction << ", " << "?, " << time(0) << ")"; |