[PATCH 1/7] gpslocation.cpp: fix unused variable warning

Lubomir I. Ivanov neolit123 at gmail.com
Thu Nov 19 04:29:01 PST 2015


On 19 November 2015 at 14:15, Sebastian Kügler <sebas at kde.org> wrote:
> On Wednesday, November 18, 2015 11:46:54 PM Lubomir I. Ivanov wrote:
>> +       (void)changed;
>
> Q_UNUSED is more Qt-ish (but I haven't checked if that's in line with
> surrounding code).

it's probably better to use it for readability in Qt .cpp files.

the definition is "(void)variable", though:
http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qglobal.h?id=e9121328866efa6ba3eb78a991fef785338fd55e#n690

lubomir
--


More information about the subsurface mailing list