diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-24 11:37:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-24 18:04:50 +0200 |
commit | 5c1561561a859c561fb2321420f1abb7f1cedde3 (patch) | |
tree | 7a96cf8b32bd4c088298df3c4067f0d81f549057 /desktop/source/lib | |
parent | 5e6d8efbf3fb456ca370df04b21d2e340d9831ad (diff) |
loplugin:unnecessarygetstr extend to more std::string checking
suggested by mike kaganski
Change-Id: I5f5f254142767aca45a6101abdd84a0163ca6a34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150936
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 742539da15e3..bd9ecf36cd1d 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2063,7 +2063,7 @@ bool CallbackFlushHandler::processWindowEvent(int type, CallbackData& aCallbackD { const OString& payload = aCallbackData.getPayload(); - boost::property_tree::ptree& aTree = aCallbackData.setJson(payload.getStr()); + boost::property_tree::ptree& aTree = aCallbackData.setJson(std::string(payload)); const unsigned nLOKWindowId = aTree.get<unsigned>("id", 0); const std::string aAction = aTree.get<std::string>("action", ""); if (aAction == "invalidate") @@ -4340,7 +4340,7 @@ static void doc_registerCallback(LibreOfficeKitDocument* pThis, bFirst = false; else sPayload += ", "; - sPayload += "\"" + std::string(f.toUtf8().getStr()) + "\""; + sPayload += "\"" + std::string(f.toUtf8()) + "\""; } sPayload += " ] }"; pCallback(LOK_CALLBACK_FONTS_MISSING, sPayload.c_str(), pData); |