From: Loïc Blot Date: Fri, 4 Jan 2019 10:33:04 +0000 (+0100) Subject: Fix on_successful_save -> onSuccessfulSave X-Git-Tag: 5.0.0~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a7c97c5f6f5e110c587de1569c4ffe53f2c2ef4;p=oweals%2Fminetest.git Fix on_successful_save -> onSuccessfulSave --- diff --git a/src/database/database-files.cpp b/src/database/database-files.cpp index b1c79c94a..04ff5230a 100644 --- a/src/database/database-files.cpp +++ b/src/database/database-files.cpp @@ -106,7 +106,7 @@ void PlayerDatabaseFiles::savePlayer(RemotePlayer *player) infostream << "Failed to write " << path << std::endl; } - player->on_successful_save(); + player->onSuccessfulSave(); } bool PlayerDatabaseFiles::removePlayer(const std::string &name) diff --git a/src/database/database-postgresql.cpp b/src/database/database-postgresql.cpp index f5f8e3adf..522580990 100644 --- a/src/database/database-postgresql.cpp +++ b/src/database/database-postgresql.cpp @@ -529,7 +529,7 @@ void PlayerDatabasePostgreSQL::savePlayer(RemotePlayer *player) } endSave(); - player->on_successful_save(); + player->onSuccessfulSave(); } bool PlayerDatabasePostgreSQL::loadPlayer(RemotePlayer *player, PlayerSAO *sao) diff --git a/src/database/database-sqlite3.cpp b/src/database/database-sqlite3.cpp index 7a79fb187..84d791403 100644 --- a/src/database/database-sqlite3.cpp +++ b/src/database/database-sqlite3.cpp @@ -531,7 +531,7 @@ void PlayerDatabaseSQLite3::savePlayer(RemotePlayer *player) endSave(); - player->on_successful_save(); + player->onSuccessfulSave(); } bool PlayerDatabaseSQLite3::loadPlayer(RemotePlayer *player, PlayerSAO *sao) diff --git a/src/remoteplayer.cpp b/src/remoteplayer.cpp index 18749d5ff..fa2200e94 100644 --- a/src/remoteplayer.cpp +++ b/src/remoteplayer.cpp @@ -224,7 +224,7 @@ const RemotePlayerChatResult RemotePlayer::canSendChatMessage() return RPLAYER_CHATRESULT_OK; } -void RemotePlayer::on_successful_save() +void RemotePlayer::onSuccessfulSave() { setModified(false); if (m_sao) diff --git a/src/remoteplayer.h b/src/remoteplayer.h index 212741df8..ea118e604 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -139,7 +139,7 @@ public: void setPeerId(session_t peer_id) { m_peer_id = peer_id; } - void on_successful_save(); + void onSuccessfulSave(); private: /*