applist: Use cosnt where necessary

This commit is contained in:
Joel16 2022-06-07 09:31:22 -04:00
parent c6ed4ac5d7
commit c5665cd892

View File

@ -326,7 +326,7 @@ namespace AppList {
return false;
}
std::string query = "SELECT title FROM tbl_appinfo_icon;";
const std::string query = "SELECT title FROM tbl_appinfo_icon;";
sqlite3_stmt *stmt = nullptr;
ret = sqlite3_prepare_v2(db, query.c_str(), -1, &stmt, nullptr);
@ -345,7 +345,8 @@ namespace AppList {
sqlite3_finalize(stmt);
sqlite3_close(db);
std::string loadout_path = "ux0:data/VITAHomebrewSorter/loadouts/" + db_name;
const std::string loadout_path = "ux0:data/VITAHomebrewSorter/loadouts/" + db_name;
ret = sqlite3_open_v2(loadout_path.c_str(), &db, SQLITE_OPEN_READWRITE, nullptr);
if (ret != SQLITE_OK) {
Log::Error("sqlite3_open_v2 failed to open %s\n", loadout_path.c_str());