[xswiftbus] Use std::string_view for performance in CDBusMessage

This avoids repeated dynamic memory allocations in dbusMessageHandler
methods and elsewhere due to repeatedly constructing temporary strings.

std::string_view is a C++17 feature but also part of the Library
Fundamentals TS and available in all our compilers.
This commit is contained in:
Mat Sutcliffe
2020-01-12 18:55:27 +00:00
parent 0c444ca45c
commit 0a2001a68e
3 changed files with 21 additions and 6 deletions

View File

@@ -5,6 +5,8 @@ TEMPLATE = lib
CONFIG += shared plugin
CONFIG -= qt
CONFIG += c++17
INCLUDEPATH += $$EXTERNALSROOT/common/include/XPLM
LIBS += -levent_core -ldbus-1