From a17880ca025a36d4ffda1da883bc01632f09dddd Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 11 Dec 2013 17:56:29 -0800 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/subsurfacewebservices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 619714dee..cdf1f493b 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -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; -- cgit v1.2.3-70-g09d2