X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fbinding%2Fdevice.cpp;h=fe08d2b4ab48a8c91e1543ee971ea398ae6eda4e;hb=a8fd27591e6c45776f0d917592e3d1f076607c48;hp=521177ad4bfd3f7fb64a70d9c5f66fd726050aec;hpb=49c62417b6b306607048b07f86b73f127e3084a3;p=pulseview.git
diff --git a/pv/binding/device.cpp b/pv/binding/device.cpp
index 521177a..fe08d2b 100644
--- a/pv/binding/device.cpp
+++ b/pv/binding/device.cpp
@@ -14,11 +14,10 @@
* 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 .
*/
-#include
+#include
#include
@@ -32,9 +31,11 @@
#include
using boost::optional;
+
using std::function;
using std::make_pair;
using std::pair;
+using std::set;
using std::shared_ptr;
using std::string;
using std::vector;
@@ -144,7 +145,7 @@ void Device::bind_bool(const QString &name,
}
void Device::bind_enum(const QString &name,
- const ConfigKey *key, std::set capabilities,
+ const ConfigKey *key, set capabilities,
Property::Getter getter,
Property::Setter setter, function printer)
{
@@ -165,7 +166,7 @@ void Device::bind_enum(const QString &name,
}
void Device::bind_int(const QString &name, QString suffix,
- optional< std::pair > range,
+ optional< pair > range,
Property::Getter getter, Property::Setter setter)
{
assert(configurable_);
@@ -178,7 +179,7 @@ QString Device::print_timebase(Glib::VariantBase gvar)
{
uint64_t p, q;
g_variant_get(gvar.gobj(), "(tt)", &p, &q);
- return QString::fromUtf8(sr_period_string(p * q));
+ return QString::fromUtf8(sr_period_string(p, q));
}
QString Device::print_vdiv(Glib::VariantBase gvar)