]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/property.hpp
Don't use std:: in the code directly (where possible).
[pulseview.git] / pv / prop / property.hpp
index 6a4dd9ab2723156171cd04a23283b5f3ffd3434f..1a7b264dfc96429e6e3688bd81614337133c0374 100644 (file)
@@ -30,6 +30,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 #include <QString>
 #include <QWidget>
 
+using std::function;
+
 class QWidget;
 
 namespace pv {
@@ -40,8 +42,8 @@ class Property : public QObject
        Q_OBJECT;
 
 public:
-       typedef std::function<Glib::VariantBase ()> Getter;
-       typedef std::function<void (Glib::VariantBase)> Setter;
+       typedef function<Glib::VariantBase ()> Getter;
+       typedef function<void (Glib::VariantBase)> Setter;
 
 protected:
        Property(QString name, Getter getter, Setter setter);