@@ -60,7 +60,7 @@ RomCollection::RomCollection(QStringList fileTypes, QStringList romPaths, QWidge
6060
6161
6262Rom RomCollection::addRom (QByteArray *romData, QString fileName, QString directory, QString zipFile,
63- QSqlQuery query, bool ddRom)
63+ QSqlQuery * query, bool ddRom)
6464{
6565 Rom currentRom;
6666
@@ -77,19 +77,19 @@ Rom RomCollection::addRom(QByteArray *romData, QString fileName, QString directo
7777 currentRom.zipFile = zipFile;
7878 currentRom.sortSize = romData->size ();
7979
80- query. bindValue (" :filename" , currentRom.fileName );
81- query. bindValue (" :directory" , currentRom.directory );
82- query. bindValue (" :internal_name" , currentRom.internalName );
83- query. bindValue (" :md5" , currentRom.romMD5 );
84- query. bindValue (" :zip_file" , currentRom.zipFile );
85- query. bindValue (" :size" , currentRom.sortSize );
80+ query-> bindValue (" :filename" , currentRom.fileName );
81+ query-> bindValue (" :directory" , currentRom.directory );
82+ query-> bindValue (" :internal_name" , currentRom.internalName );
83+ query-> bindValue (" :md5" , currentRom.romMD5 );
84+ query-> bindValue (" :zip_file" , currentRom.zipFile );
85+ query-> bindValue (" :size" , currentRom.sortSize );
8686
8787 if (ddRom)
88- query. bindValue (" :dd_rom" , 1 );
88+ query-> bindValue (" :dd_rom" , 1 );
8989 else
90- query. bindValue (" :dd_rom" , 0 );
90+ query-> bindValue (" :dd_rom" , 0 );
9191
92- query. exec ();
92+ query-> exec ();
9393
9494 if (!ddRom)
9595 initializeRom (¤tRom, false );
@@ -153,10 +153,10 @@ int RomCollection::addRoms()
153153 *romData = byteswap (*romData);
154154
155155 if (romData->left (4 ).toHex () == " 80371240" ) { // Z64 ROM
156- roms.append (addRom (romData, zippedFile, romPath, fileName, std::move ( query) ));
156+ roms.append (addRom (romData, zippedFile, romPath, fileName, & query));
157157 romCount++;
158158 } else if (romData->left (4 ).toHex () == " e848d316" ) { // 64DD ROM
159- ddRoms.append (addRom (romData, zippedFile, romPath, fileName, std::move ( query) , true ));
159+ ddRoms.append (addRom (romData, zippedFile, romPath, fileName, & query, true ));
160160 romCount++;
161161 }
162162
@@ -171,10 +171,10 @@ int RomCollection::addRoms()
171171 *romData = byteswap (*romData);
172172
173173 if (romData->left (4 ).toHex () == " 80371240" ) { // Z64 ROM
174- roms.append (addRom (romData, fileName, romPath, " " , std::move ( query) ));
174+ roms.append (addRom (romData, fileName, romPath, " " , & query));
175175 romCount++;
176176 } else if (romData->left (4 ).toHex () == " e848d316" ) { // 64DD ROM
177- ddRoms.append (addRom (romData, fileName, romPath, " " , std::move ( query) , true ));
177+ ddRoms.append (addRom (romData, fileName, romPath, " " , & query, true ));
178178 romCount++;
179179 }
180180
0 commit comments