From a3239adeee1eaf1a76516ae674585a78510c75e7 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 16 Nov 2018 14:52:39 +0100 Subject: 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 --- ui/qt/capture_file_properties_dialog.cpp | 2 +- ui/qt/gsm_map_summary_dialog.cpp | 2 +- ui/qt/mtp3_summary_dialog.cpp | 2 +- 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")) -- cgit v1.2.3