Includes, comments and bugfixes
- Fix includes - Use common regex (Song::kCoverRemoveDisc) for removing Disc/CD from album - Remove Disc/CD from album when creating hash - Make imobiledevice support compile - Fix setting device on windows
This commit is contained in:
@@ -23,22 +23,22 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
class QSqlDatabase;
|
||||
#include <QSqlDatabase>
|
||||
|
||||
// Opens a transaction on a database.
|
||||
// Rolls back the transaction if the object goes out of scope before Commit()
|
||||
// is called.
|
||||
// Rolls back the transaction if the object goes out of scope before Commit() is called.
|
||||
class ScopedTransaction : boost::noncopyable {
|
||||
public:
|
||||
ScopedTransaction(QSqlDatabase* db);
|
||||
ScopedTransaction(QSqlDatabase *db);
|
||||
~ScopedTransaction();
|
||||
|
||||
void Commit();
|
||||
|
||||
private:
|
||||
QSqlDatabase* db_;
|
||||
QSqlDatabase *db_;
|
||||
bool pending_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user