From 373f352ef2f39965b4ef830acfc1554f8e2e3abf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Nov 2013 11:46:53 +0200 Subject: remove unnecessary use of OUString constructor in FORMS module Change-Id: Ibbf477e99ba0c07a9138497496442b0f9296f5c3 --- forms/source/component/Grid.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'forms/source/component/Grid.cxx') diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index e1c8549642cb..c81675f77084 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -202,9 +202,8 @@ StringSequence OGridControlModel::getSupportedServiceNames() throw(RuntimeExcept StringSequence aSupported = OControlModel::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 2); - OUString*pArray = aSupported.getArray(); - pArray[aSupported.getLength()-2] = OUString("com.sun.star.awt.UnoControlModel"); - pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_GRIDCONTROL; + aSupported[aSupported.getLength()-2] = "com.sun.star.awt.UnoControlModel"; + aSupported[aSupported.getLength()-1] = FRM_SUN_COMPONENT_GRIDCONTROL; return aSupported; } -- cgit