Skip to content

Commit

Permalink
Use u""_s where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Jul 22, 2023
1 parent ae12edd commit b99be49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set(QI_QMP_QX_COMPONENTS

include(OB/FetchQx)
ob_fetch_qx(
REF "a87499d7bb9ba6279b2db72ce3589e4c6fea7763"
REF "520cc55d4a38aeb98c945b5c0c1c6eb70459af35"
COMPONENTS
${QI_QMP_QX_COMPONENTS}
)
Expand Down
12 changes: 6 additions & 6 deletions lib/src/qmpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct Greeting

struct SuccessResponse
{
static inline const QString IDENTIFIER_KEY = QSL("return");
static inline const QString IDENTIFIER_KEY =u"return"_s;
};

struct ErrorBody
Expand All @@ -41,7 +41,7 @@ struct ErrorBody

struct ErrorResponse
{
static inline const QString IDENTIFIER_KEY = QSL("error");
static inline const QString IDENTIFIER_KEY =u"error"_s;

ErrorBody error;

Expand All @@ -58,7 +58,7 @@ struct Timestamp

struct AsyncEvent
{
static inline const QString IDENTIFIER_KEY = QSL("event");
static inline const QString IDENTIFIER_KEY =u"event"_s;

QString event;
QJsonObject data;
Expand All @@ -70,11 +70,11 @@ struct AsyncEvent
// TODO: Use QX_JSON for serializing these after the serialization portion of QX_JSON is implemented
struct Execute
{
static inline const QString IDENTIFIER_KEY = QSL("execute");
static inline const QString ARGUMENTS = QSL("arguments");
static inline const QString IDENTIFIER_KEY =u"execute"_s;
static inline const QString ARGUMENTS =u"arguments"_s;
};

static inline const QString NEGOTIATION_COMMAND = QSL("qmp_capabilities");
static inline const QString NEGOTIATION_COMMAND =u"qmp_capabilities"_s;
}
/*! @endcond */

Expand Down

0 comments on commit b99be49

Please sign in to comment.