sw/source/core/unocore/unobkm.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 5f7860bc2735bad3cd27552867ce25096835dcbb Author: Matteo Casalin <matteo.casa...@yahoo.com> Date: Sun Jul 28 13:20:56 2013 +0200 OUString: remove unnecessary casts and appends Change-Id: Ib64b976ac94cba64d9f7c0cbfead3890277ec9ca Reviewed-on: https://gerrit.libreoffice.org/5188 Reviewed-by: Andrzej J.R. Hunt <andr...@ahunt.org> Tested-by: Andrzej J.R. Hunt <andr...@ahunt.org> diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx index 8e6324b..acffc53 100644 --- a/sw/source/core/unocore/unobkm.cxx +++ b/sw/source/core/unocore/unobkm.cxx @@ -47,10 +47,9 @@ namespace { static OUString lcl_QuoteName(const OUString& rName) { - static const OUString sStart = OUString(String(SW_RES(STR_START_QUOTE))); - static const OUString sEnd = OUString(String(SW_RES(STR_END_QUOTE))); - OUStringBuffer sBuf(64); - return sBuf.append(sStart).append(rName).append(sEnd).makeStringAndClear(); + static const OUString sStart = SW_RES(STR_START_QUOTE); + static const OUString sEnd = SW_RES(STR_END_QUOTE); + return sStart + rName + sEnd; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits