diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-13 14:18:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-13 14:18:12 +0100 |
commit | f87e78a777c975451b839d9dae6b723db7d040cd (patch) | |
tree | 7b900499b08107bb9dcfea8454c35ec89f2e99de /svl | |
parent | Fix build - sorry! (diff) | |
download | core-f87e78a777c975451b839d9dae6b723db7d040cd.tar.gz core-f87e78a777c975451b839d9dae6b723db7d040cd.zip |
Simplification
Change-Id: I949bf3cb9c3b26a8c2de6bde20cef63d7630fc54
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemset.cxx | 9 |
1 files 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 <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: */ |