From: Soeren Apel Date: Tue, 16 Feb 2016 20:14:12 +0000 (+0100) Subject: Whitespace fix X-Git-Tag: pulseview-0.4.0~334 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=27c0521002ea986b72d9675b99803665516db14c;hp=744aa24fc5a7084461e4e70595b96f1c3eac65e4 Whitespace fix --- diff --git a/pv/data/decode/decoder.cpp b/pv/data/decode/decoder.cpp index 374dd4d3..1513b20b 100644 --- a/pv/data/decode/decoder.cpp +++ b/pv/data/decode/decoder.cpp @@ -44,7 +44,7 @@ Decoder::Decoder(const srd_decoder *const dec) : Decoder::~Decoder() { - for (auto & option : options_) + for (auto& option : options_) g_variant_unref(option.second); } @@ -102,7 +102,7 @@ bool Decoder::have_required_channels() const set< shared_ptr > Decoder::get_data() { set< shared_ptr > data; - for (const auto & channel : channels_) { + for (const auto& channel : channels_) { shared_ptr signal(channel.second); assert(signal); data.insert(signal->logic_data()); @@ -116,7 +116,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const 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( @@ -134,7 +134,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const 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 signal(channel.second); GVariant *const gvar = g_variant_new_int32( signal->channel()->index()); diff --git a/pv/data/decode/rowdata.cpp b/pv/data/decode/rowdata.cpp index e7d82fd7..c8d68df6 100644 --- a/pv/data/decode/rowdata.cpp +++ b/pv/data/decode/rowdata.cpp @@ -41,7 +41,7 @@ void RowData::get_annotation_subset( vector &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); diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index b79326d8..441ff3c3 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -272,7 +272,7 @@ uint64_t DecoderStack::max_sample_count() const { 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()); diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index 1351467a..3ae6eec6 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -125,7 +125,7 @@ void WellArray::paintCell(QPainter* p, int row, int col, const QRect &rect) { int b = 3; //margin - const QPalette & g = palette(); + const QPalette& g = palette(); QStyleOptionFrame opt; int dfw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); opt.lineWidth = dfw;