diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-12-14 10:29:48 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-12-14 20:26:52 +0000 |
commit | db740987fffeb7e8122a6cd40e25f16244af5721 (patch) | |
tree | 3b0a6831fefe8c7e13be9d0f01a1916a413aaffe /ui/qt/wireshark_application.h | |
parent | 4cf7cd3ed20c57dc5977be5be37ced0bd1706d61 (diff) |
Qt: Add and use qUtf8Printable.
Qt 5.4 introduced qUtf8Printable, a convenience macro for converting
QString to a UTF-8 const char *. Add a compatibility definition and
start using it.
Change-Id: I3cf88611b1ed1a34082cb2ba82394954e2e6c461
Reviewed-on: https://code.wireshark.org/review/24828
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index c9d6c9ebba..00e40de958 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -109,7 +109,7 @@ public: void removeRecentItem(const QString &filename); QDir lastOpenDir(); void setLastOpenDir(const char *dir_name); - void setLastOpenDir(QString *dir_str); + void setLastOpenDir(QString dir_str); void helpTopicAction(topic_action_e action); const QFont monospaceFont() const { return mono_font_; } void setMonospaceFont(const char *font_string); |