mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make the errPrefix a static variable
No need to allocate memory for something that will show in debugging only. Besides, qDebug() of a QString adds quotes around it, which we can do without. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
aadf2cd19c
commit
a17880ca02
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ static void clear_table(struct dive_table *table)
|
|||
|
||||
static char *prepare_dives_for_divelogs(const bool selected)
|
||||
{
|
||||
const QString errPrefix("divelog.de-upload:");
|
||||
static const char errPrefix[] = "divelog.de-upload:";
|
||||
if (!amount_selected) {
|
||||
qDebug() << errPrefix << "no dives selected";
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue