diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-05-12 13:18:15 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-05-12 12:35:52 +0000 |
commit | c5ce93e132cc45fee1097b55ffe119860c9113a8 (patch) | |
tree | 19df520ed3d6fab822e2595b5391c54c74d61d6a /src | |
parent | acac988b654ef169115af14c06840e6387cde04f (diff) | |
download | qtlocation-c5ce93e132cc45fee1097b55ffe119860c9113a8.tar.gz |
Make geoclue plugin compile on RHEL 6.6
G_VALUE_INIT was added by glib 2.30 and RHEL 6.6 uses 2.28.
We expand the macro to fix the compile issue.
Change-Id: I25d19858ad3035a266d9ddf4d9badc830071e943
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp b/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp index 95365eca..53c2a903 100644 --- a/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp +++ b/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp @@ -285,7 +285,7 @@ void QGeoPositionInfoSourceGeoclueMaster::setOptions() const QVariant v = i.value(); GValue *value = new GValue; - *value = G_VALUE_INIT; + *value = { 0, { { 0 } } }; switch (v.userType()) { case QMetaType::QString: |