Skip to content

Commit

Permalink
Fix a couple typos/compile
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Apr 2, 2018
1 parent 7b42be9 commit 21ca405
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/DBProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ void DBProfile::SavePlayerScores(SQLite::Database* db, const Profile* profile, D
//Add scores per rate
FOREACHM(int, ScoresAtRate, chartPair->second.ScoresByRate, ratePair) {
//first is rate int and second is ScoresAtRate
int rate = ratePair->first;
int rate = ratePair->first;
int scoresAtRateID;
if (mode != WriteOnlyWebExport) {
SQLite::Statement insertScoresAtRate(*db, "INSERT INTO scoresatrates VALUES (NULL, ?, ?, ?, ?)");
Expand Down Expand Up @@ -856,8 +856,10 @@ void DBProfile::SavePlayerScores(SQLite::Database* db, const Profile* profile, D
insertOffset.exec();
}
}
} catch (std::exception& e) { //No replay data for this score }
hs->UnloadReplayData();
}
catch (std::exception& e) { //No replay data for this score }
hs->UnloadReplayData();
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/SongCacheIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ SongCacheIndex::SongCacheIndex()
DBEmpty = !OpenDB();
}

int64_t SongCacheIndex::InsertStepsTimingData(TimingData& timing)
int64_t SongCacheIndex::InsertStepsTimingData(const TimingData& timing)
{
SQLite::Statement insertTimingData(*db, "INSERT INTO timingdatas VALUES (NULL, "
"?, ?, ?, "
Expand Down
2 changes: 1 addition & 1 deletion src/SongCacheIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SongCacheIndex
unsigned GetCacheHash( const RString &path ) const;
bool delay_save_cache;

int64_t InsertStepsTimingData(TimingData &timing);
int64_t InsertStepsTimingData(const TimingData &timing);
int64_t InsertSteps(const Steps* pSteps, int64_t songID);
bool LoadSongFromCache(Song* song, string dir);
bool CacheSong(Song& song, string dir);
Expand Down

0 comments on commit 21ca405

Please sign in to comment.