Additional locations: replace macro
This commit is contained in:
Родитель
90c2480485
Коммит
d5bf8fc91a
|
@ -1 +1 @@
|
|||
Subproject commit b751ddf9312c1bfd48909ede6f93b3f267760e41
|
||||
Subproject commit d1847ca63b5669aa4c0e55c282e1445683eaf289
|
|
@ -10,9 +10,6 @@
|
|||
#include <numeric>
|
||||
#include <set>
|
||||
|
||||
|
||||
#define IF_CLOSED_RETURN if (!isOpen()) return
|
||||
|
||||
namespace ARIASDK_NS_BEGIN {
|
||||
|
||||
class DbTransaction {
|
||||
|
@ -328,7 +325,9 @@ namespace ARIASDK_NS_BEGIN {
|
|||
std::vector<StorageRecord> records;
|
||||
StorageRecord record;
|
||||
|
||||
IF_CLOSED_RETURN records;
|
||||
if (!isOpen()) {
|
||||
return records;
|
||||
}
|
||||
|
||||
if (shutdown)
|
||||
{
|
||||
|
@ -364,7 +363,9 @@ namespace ARIASDK_NS_BEGIN {
|
|||
void OfflineStorage_SQLite::DeleteRecords(const std::map<std::string, std::string> & whereFilter)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(whereFilter);
|
||||
IF_CLOSED_RETURN;
|
||||
if (!isOpen()) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOCKGUARD(m_lock);
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче