summaryrefslogtreecommitdiff
path: root/ui/qt/sequence_dialog.cpp
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-11-27 23:04:16 +0000
committerMichael Mann <mmann78@netscape.net>2015-11-29 00:25:11 +0000
commit5e6d45ca98bb8c368b73084785d90fa3b0b6291f (patch)
tree7e541c16d0e31ef60e35d2be7ba27f8a477523cc /ui/qt/sequence_dialog.cpp
parentcfc47c15c2b902a50764a21cbcd2ba1d78b1de7a (diff)
downloadwireshark-5e6d45ca98bb8c368b73084785d90fa3b0b6291f.tar.gz
Make address_to_display() use proper (non-)constness
Don't return allocated memory as a const pointer. Fixes multiple [-Wcast-qual] warnings. Change-Id: Ie9ceac27fa2a5eba41a5392ac983ff28c3939239 Reviewed-on: https://code.wireshark.org/review/12267 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/sequence_dialog.cpp')
-rw-r--r--ui/qt/sequence_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp
index 50f7e6ec9a..fecb40dad0 100644
--- a/ui/qt/sequence_dialog.cpp
+++ b/ui/qt/sequence_dialog.cpp
@@ -353,7 +353,7 @@ void SequenceDialog::fillDiagram()
char* addr_str;
node_label_w_ = 0;
for (guint i = 0; i < info_->sainfo()->num_nodes; i++) {
- addr_str = (char*)address_to_display(NULL, &(info_->sainfo()->nodes[i]));
+ addr_str = address_to_display(NULL, &(info_->sainfo()->nodes[i]));
int label_w = vfm.width(addr_str);
if (node_label_w_ < label_w) {
node_label_w_ = label_w;