[Libreoffice-commits] core.git: svl/source
Stephan Bergmann
sbergman at redhat.com
Thu Feb 13 14:18:38 CET 2014
svl/source/items/itemset.cxx | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
New commits:
commit f87e78a777c975451b839d9dae6b723db7d040cd
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Feb 13 14:18:12 2014 +0100
Simplification
Change-Id: I949bf3cb9c3b26a8c2de6bde20cef63d7630fc54
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 29b382c..0a4e301 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -31,7 +31,7 @@
#include <tools/stream.hxx>
#include <tools/solar.h>
-#include <rtl/strbuf.hxx>
+#include <rtl/string.hxx>
// 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<char const *>(aStream.GetData()), aStream.GetEndOfData());
}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list