diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-12-11 17:56:29 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-12 03:34:54 +0100 |
commit | a17880ca025a36d4ffda1da883bc01632f09dddd (patch) | |
tree | 381332d213319b4de6cfb1d23eedad25129bd6ee /qt-ui/subsurfacewebservices.cpp | |
parent | aadf2cd19c4f77fba821f8a2c7bf9a34dc07b8c0 (diff) | |
download | subsurface-a17880ca025a36d4ffda1da883bc01632f09dddd.tar.gz |
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>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |