projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Session: Use a monotonic clock to measure acquisition time.
[pulseview.git]
/
pv
/
subwindows
/
decoder_selector
/
item.cpp
diff --git
a/pv/subwindows/decoder_selector/item.cpp
b/pv/subwindows/decoder_selector/item.cpp
index 00c469e062ceaea8f1c1a1e4a456ce6276aabad1..0ce5ab73844c61eb41e669ca127247210e443caf 100644
(file)
--- a/
pv/subwindows/decoder_selector/item.cpp
+++ b/
pv/subwindows/decoder_selector/item.cpp
@@
-41,7
+41,7
@@
shared_ptr<DecoderCollectionItem> DecoderCollectionItem::subItem(int row) const
{
try {
return subItems_.at(row);
{
try {
return subItems_.at(row);
- } catch (out_of_range) {
+ } catch (out_of_range
&
) {
return nullptr;
}
}
return nullptr;
}
}
@@
-74,7
+74,7
@@
int DecoderCollectionItem::columnCount() const
int DecoderCollectionItem::row() const
{
if (parent_)
int DecoderCollectionItem::row() const
{
if (parent_)
- for (
uin
t i = 0; i < parent_->subItems_.size(); i++)
+ for (
size_
t i = 0; i < parent_->subItems_.size(); i++)
if (parent_->subItems_.at(i).get() == const_cast<DecoderCollectionItem*>(this))
return i;
if (parent_->subItems_.at(i).get() == const_cast<DecoderCollectionItem*>(this))
return i;
@@
-85,7
+85,7
@@
QVariant DecoderCollectionItem::data(int column) const
{
try {
return data_.at(column);
{
try {
return data_.at(column);
- } catch (out_of_range) {
+ } catch (out_of_range
&
) {
return QVariant();
}
}
return QVariant();
}
}