From f87e78a777c975451b839d9dae6b723db7d040cd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 13 Feb 2014 14:18:12 +0100 Subject: Simplification Change-Id: I949bf3cb9c3b26a8c2de6bde20cef63d7630fc54 --- svl/source/items/itemset.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 29b382c17652..0a4e301e6309 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -31,7 +31,7 @@ #include #include -#include +#include // STATIC DATA ----------------------------------------------------------- @@ -2041,14 +2041,13 @@ sal_uInt64 SfxItemSet::getHash() const OString SfxItemSet::stringify() const { - rtl::OStringBuffer aString(100); SvMemoryStream aStream; SfxItemSet aSet(*this); aSet.InvalidateDefaultItems(); aSet.Store(aStream, true); aStream.Flush(); - aString.append((const char *)aStream.GetData(), aStream.GetEndOfData()); - - return aString.makeStringAndClear(); + return OString( + static_cast(aStream.GetData()), aStream.GetEndOfData()); } + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3