1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-11 08:56:03 +01:00

.aup3 Tweaks

- SQLite added to libs in readme.txt
- User message 'aup not associated' updated to 'aup3'
- Typos strind -> string, in -> is
- No translation of debug message
This commit is contained in:
James Crook
2020-07-01 12:59:38 +01:00
parent d39590cf41
commit bc50e21532
4 changed files with 12 additions and 7 deletions

View File

@@ -216,7 +216,7 @@ sqlite3 *ProjectFileIO::OpenDB(FilePath fileName)
int rc = sqlite3_open(fileName, &mDB);
if (rc != SQLITE_OK)
{
// AUD3 TODO COMPLAIN AND THROW - crash in inevitable otherwise
// AUD3 TODO COMPLAIN AND THROW - crash is inevitable otherwise
return nullptr;
}
@@ -228,7 +228,7 @@ sqlite3 *ProjectFileIO::OpenDB(FilePath fileName)
{
CloseDB();
// AUD3 TODO COMPLAIN AND THROW - crash in inevitable otherwise
// AUD3 TODO COMPLAIN AND THROW - crash is inevitable otherwise
return nullptr;
}
@@ -356,7 +356,8 @@ wxString ProjectFileIO::GetValue(const char *sql)
int rc = Exec(sql, getresult, &value);
if (rc != SQLITE_OK)
{
wxLogDebug(wxT("SQLITE error %s"), mLastError.Translation());
wxLogDebug(wxT("%s"), mLastError.Debug());
// AUD TODO Handle error.
}
return value;
@@ -380,7 +381,7 @@ bool ProjectFileIO::GetBlob(const char *sql, wxMemoryBuffer &buffer)
if (rc != SQLITE_OK)
{
wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db));
// handle error
// AUD TODO handle error
return false;
}
@@ -388,7 +389,7 @@ bool ProjectFileIO::GetBlob(const char *sql, wxMemoryBuffer &buffer)
if (rc != SQLITE_ROW)
{
wxLogDebug(wxT("SQLITE error %s"), sqlite3_errmsg(db));
// handle error
// AUD TODO handle error
return false;
}