Avoid copying QSharedPointers when not needed
This commit is contained in:
committed by
Jonathan White
parent
6df9c6f9b2
commit
39b96c13e8
@@ -18,6 +18,8 @@
|
||||
#include "DatabaseSettingsWidget.h"
|
||||
#include "core/Database.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <QTimer>
|
||||
#include <QWidget>
|
||||
|
||||
@@ -38,6 +40,6 @@ DatabaseSettingsWidget::~DatabaseSettingsWidget()
|
||||
*/
|
||||
void DatabaseSettingsWidget::load(QSharedPointer<Database> db)
|
||||
{
|
||||
m_db = db;
|
||||
m_db = std::move(db);
|
||||
initialize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user