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:
Thiago Macieira 2013-12-11 17:56:29 -08:00 committed by Dirk Hohndel
parent aadf2cd19c
commit a17880ca02

View file

@ -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;