Minor codestyle fixes

This commit is contained in:
Mirco Miranda 2025-05-01 10:58:15 +02:00
parent 296e67254e
commit db00dc70bd

View File

@ -251,11 +251,13 @@ public:
*/ */
bool initForReadingAndRollBack(QIODevice *device) bool initForReadingAndRollBack(QIODevice *device)
{ {
if (device) if (device) {
device->startTransaction(); device->startTransaction();
}
auto ok = initForReading(device); auto ok = initForReading(device);
if (device) if (device) {
device->rollbackTransaction(); device->rollbackTransaction();
}
return ok; return ok;
} }