From 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 30 Jan 2016 19:09:35 +0200 Subject: unnecessary use of OUString constructor Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/uno/unoatxt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/uno/unoatxt.cxx') diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index e9d2fe53dc86..8ee1ad987c56 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -368,7 +368,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const bool bNoAttr = !pxCursor && !pxRange; if(bNoAttr) { - sOnlyText = OUString(xTextRange->getString()); + sOnlyText = xTextRange->getString(); pOnlyText = &sOnlyText; } -- cgit