aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-11-16 14:52:39 +0100
committerPeter Wu <peter@lekensteyn.nl>2018-11-16 13:54:27 +0000
commita3239adeee1eaf1a76516ae674585a78510c75e7 (patch)
tree3b54b8536dd797f1cd4365db1f367be2a04a8176
parentb894c53d5ea1395e042bb05e471d651af486dfab (diff)
Qt: fix build with Qt 5.4 and older
Change-Id: Iabdd87128a2af8c668c0602ea677f71984e64723 Fixes: v2.9.0rc0-2556-gb894c53d5e ("Add an API to get a description of a compression type, and use it.") Reviewed-on: https://code.wireshark.org/review/30670 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
-rw-r--r--ui/qt/capture_file_properties_dialog.cpp2
-rw-r--r--ui/qt/gsm_map_summary_dialog.cpp2
-rw-r--r--ui/qt/mtp3_summary_dialog.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/capture_file_properties_dialog.cpp b/ui/qt/capture_file_properties_dialog.cpp
index 701366260a..ec7229e47b 100644
--- a/ui/qt/capture_file_properties_dialog.cpp
+++ b/ui/qt/capture_file_properties_dialog.cpp
@@ -179,7 +179,7 @@ QString CaptureFilePropertiesDialog::summaryToHtml()
QString format_str = wtap_file_type_subtype_string(summary.file_type);
const char *compression_type_description = wtap_compression_type_description(summary.compression_type);
if (compression_type_description != NULL) {
- format_str += QString::asprintf(" (%s)", compression_type_description);
+ format_str += QString(" (%1)").arg(compression_type_description);
}
out << table_row_begin
<< table_vheader_tmpl.arg(tr("Format"))
diff --git a/ui/qt/gsm_map_summary_dialog.cpp b/ui/qt/gsm_map_summary_dialog.cpp
index 11992f41ef..0d37d75980 100644
--- a/ui/qt/gsm_map_summary_dialog.cpp
+++ b/ui/qt/gsm_map_summary_dialog.cpp
@@ -109,7 +109,7 @@ QString GsmMapSummaryDialog::summaryToHtml()
QString format_str = wtap_file_type_subtype_string(summary.file_type);
const char *compression_type_description = wtap_compression_type_description(summary.compression_type);
if (compression_type_description != NULL) {
- format_str += QString::asprintf(" (%s)", compression_type_description);
+ format_str += QString(" (%1)").arg(compression_type_description);
}
out << table_row_begin
<< table_vheader_tmpl.arg(tr("Format"))
diff --git a/ui/qt/mtp3_summary_dialog.cpp b/ui/qt/mtp3_summary_dialog.cpp
index acf7e6d10c..199fd99433 100644
--- a/ui/qt/mtp3_summary_dialog.cpp
+++ b/ui/qt/mtp3_summary_dialog.cpp
@@ -113,7 +113,7 @@ QString Mtp3SummaryDialog::summaryToHtml()
QString format_str = wtap_file_type_subtype_string(summary.file_type);
const char *compression_type_description = wtap_compression_type_description(summary.compression_type);
if (compression_type_description != NULL) {
- format_str += QString::asprintf(" (%s)", compression_type_description);
+ format_str += QString(" (%1)").arg(compression_type_description);
}
out << table_row_begin
<< table_vheader_tmpl.arg(tr("Format"))