From ce9699decf375689c8dc8d3b5070fa512212f910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Thu, 15 Dec 2022 13:41:41 +0100 Subject: [PATCH] Rename Savepoint::rollback() to Savepoint::rollbackTo() --- include/SQLiteCpp/Savepoint.h | 4 +++- src/Savepoint.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/SQLiteCpp/Savepoint.h b/include/SQLiteCpp/Savepoint.h index ab5fd22..0c0fba6 100644 --- a/include/SQLiteCpp/Savepoint.h +++ b/include/SQLiteCpp/Savepoint.h @@ -84,7 +84,9 @@ public: /** * @brief Rollback to the savepoint, but don't release it. */ - void rollback(); + void rollbackTo(); + // @deprecated same as rollbackTo(); + void rollback() { rollbackTo(); } private: Database& mDatabase; ///< Reference to the SQLite Database Connection diff --git a/src/Savepoint.cpp b/src/Savepoint.cpp index 64a1580..bf9a379 100644 --- a/src/Savepoint.cpp +++ b/src/Savepoint.cpp @@ -66,7 +66,7 @@ void Savepoint::release() } // Rollback to the savepoint, but don't release it -void Savepoint::rollback() +void Savepoint::rollbackTo() { if (!mbReleased) {