diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-03-17 09:54:37 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-03-17 17:35:53 +0000 |
commit | 7d8cb0ab4feb30759545ccacd32df6aa1f6492cc (patch) | |
tree | c8de34261ed1b78d1f4a1095bd642d02de607413 /ui/qt/models/expert_info_model.h | |
parent | a3de3fbec9f15b3914eec2df3a84c6e075811341 (diff) |
Constification, to remove some compiler warnings.
We don't modify expert_info_t's used when constructing an
ExpertPacketItem or when they're passed to the tap routine.
Change-Id: I9e6a1545ce2340091eb7c5f6a8ef5a1da675b3ab
Reviewed-on: https://code.wireshark.org/review/32456
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/models/expert_info_model.h')
-rw-r--r-- | ui/qt/models/expert_info_model.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/models/expert_info_model.h b/ui/qt/models/expert_info_model.h index ce22fb8d74..0be0419072 100644 --- a/ui/qt/models/expert_info_model.h +++ b/ui/qt/models/expert_info_model.h @@ -26,7 +26,7 @@ class ExpertPacketItem { public: - ExpertPacketItem(expert_info_t& expert_info, column_info *cinfo, ExpertPacketItem* parent); + ExpertPacketItem(const expert_info_t& expert_info, column_info *cinfo, ExpertPacketItem* parent); virtual ~ExpertPacketItem(); unsigned int packetNum() const { return packet_num_; } @@ -109,7 +109,7 @@ public: void setGroupBySummary(bool group_by_summary); // Called from tapPacket - void addExpertInfo(struct expert_info_s& expert_info); + void addExpertInfo(const struct expert_info_s& expert_info); // Callbacks for register_tap_listener static void tapReset(void *eid_ptr); |