summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-21 10:12:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-21 21:46:09 +0200
commitf712c531336b2c44636a35ad682913550640e0d3 (patch)
tree17f96584923f9de4945479eb67d65fa7b2a2331e /svl
parent90cbe03a0bd65151c197d3d4aeaf48a696f13fad (diff)
loplugin:unnecessarygetstr extend to checking std::string::c_str
Change-Id: I17398e2a6a31a2c98ba8e54b5c8045f22aee8759 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150749 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/undo/undo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 1ddb3b35f274..31269438f938 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -1212,7 +1212,7 @@ OUString SfxUndoManager::GetUndoActionsInfo() const
aTree.add_child("actions", aActions);
std::stringstream aStream;
boost::property_tree::write_json(aStream, aTree);
- return OUString::fromUtf8(aStream.str().c_str());
+ return OUString::fromUtf8(aStream.str());
}
OUString SfxUndoManager::GetRedoActionsInfo() const
@@ -1231,7 +1231,7 @@ OUString SfxUndoManager::GetRedoActionsInfo() const
aTree.add_child("actions", aActions);
std::stringstream aStream;
boost::property_tree::write_json(aStream, aTree);
- return OUString::fromUtf8(aStream.str().c_str());
+ return OUString::fromUtf8(aStream.str());
}
bool SfxUndoManager::IsEmptyActions() const