diff widgets/PropertyBox.cpp @ 1604:5feb1a8318df

Fix compiler warning
author Chris Cannam
date Wed, 29 Apr 2020 17:47:55 +0100
parents a798a7b5e215
children
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Wed Apr 29 17:47:37 2020 +0100
+++ b/widgets/PropertyBox.cpp	Wed Apr 29 17:47:55 2020 +0100
@@ -730,8 +730,8 @@
     QString name = m_contextMenuOn->objectName();
     
     QString label = m_container->getPropertyLabel(name);
-    int min = 0, max = 0, value = 0, deflt = 0;
-    value = m_container->getPropertyRangeAndValue(name, &min, &max, &deflt);
+    int min = 0, max = 0, deflt = 0;
+    (void)m_container->getPropertyRangeAndValue(name, &min, &max, &deflt);
     
     if (auto button = qobject_cast<QAbstractButton *>(m_contextMenuOn)) {
         button->setChecked(deflt > 0);