projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fixes for Qt5 Windows/mingw/MXE support.
[pulseview.git]
/
pv
/
prop
/
double.cpp
diff --git
a/pv/prop/double.cpp
b/pv/prop/double.cpp
index d059755843112be79d6e014672f05e0e31feb806..f453cf178a7fb3e8034022f6d575e667dd3d2575 100644
(file)
--- a/
pv/prop/double.cpp
+++ b/
pv/prop/double.cpp
@@
-14,8
+14,7
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
*/
#include <assert.h>
@@
-42,11
+41,7
@@
Double::Double(QString name,
suffix_(suffix),
range_(range),
step_(step),
suffix_(suffix),
range_(range),
step_(step),
- spin_box_(NULL)
-{
-}
-
-Double::~Double()
+ spin_box_(nullptr)
{
}
{
}
@@
-56,11
+51,11
@@
QWidget* Double::get_widget(QWidget *parent, bool auto_commit)
return spin_box_;
if (!getter_)
return spin_box_;
if (!getter_)
- return
NULL
;
+ return
nullptr
;
Glib::VariantBase variant = getter_();
if (!variant.gobj())
Glib::VariantBase variant = getter_();
if (!variant.gobj())
- return
NULL
;
+ return
nullptr
;
double value = Glib::VariantBase::cast_dynamic<Glib::Variant<double>>(
variant).get();
double value = Glib::VariantBase::cast_dynamic<Glib::Variant<double>>(
variant).get();