Decoder::~Decoder()
{
- for (auto & option : options_)
+ for (auto& option : options_)
g_variant_unref(option.second);
}
set< shared_ptr<pv::data::Logic> > Decoder::get_data()
{
set< shared_ptr<pv::data::Logic> > data;
- for (const auto & channel : channels_) {
+ for (const auto& channel : channels_) {
shared_ptr<view::LogicSignal> signal(channel.second);
assert(signal);
data.insert(signal->logic_data());
GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash,
g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
- for (const auto & option : options_) {
+ for (const auto& option : options_) {
GVariant *const value = option.second;
g_variant_ref(value);
g_hash_table_replace(opt_hash, (void*)g_strdup(
GHashTable *const channels = g_hash_table_new_full(g_str_hash,
g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
- for (const auto & channel : channels_) {
+ for (const auto& channel : channels_) {
shared_ptr<view::LogicSignal> signal(channel.second);
GVariant *const gvar = g_variant_new_int32(
signal->channel()->index());
vector<pv::data::decode::Annotation> &dest,
uint64_t start_sample, uint64_t end_sample) const
{
- for (const auto & annotation : annotations_)
+ for (const auto& annotation : annotations_)
if (annotation.end_sample() > start_sample &&
annotation.start_sample() <= end_sample)
dest.push_back(annotation);
{
uint64_t max_sample_count = 0;
- for (const auto & row : rows_)
+ for (const auto& row : rows_)
max_sample_count = max(max_sample_count,
row.second.get_max_sample());