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
@ -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…
x
Reference in New Issue
Block a user