From 4e1917e355c8646f754d4ae0ac566943c743d16b Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Tue, 1 Aug 2006 08:54:45 +0000 Subject: INTEGRATION: CWS mba204crashfixes (1.44.30); FILE MERGED 2006/07/26 09:07:54 mba 1.44.30.2: RESYNC: (1.44-1.45); FILE MERGED 2006/07/17 14:59:57 mba 1.44.30.1: performance improvement: don't use service to parse command URLs --- sfx2/source/control/bindings.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 9038c33f330c..a4b54b196348 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bindings.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: kz $ $Date: 2006-07-19 17:17:03 $ + * last change: $Author: ihi $ $Date: 2006-08-01 09:54:45 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2606,12 +2606,13 @@ SfxItemState SfxBindings::QueryState( sal_uInt16 nSlot, SfxPoolItem* &rpState ) return SFX_ITEM_DISABLED; ::com::sun::star::util::URL aURL; - String aCmd( DEFINE_CONST_UNICODE(".uno:")); - aCmd += String::CreateFromAscii(pSlot->GetUnoName()); + ::rtl::OUString aCmd( DEFINE_CONST_UNICODE(".uno:")); + aURL.Protocol = aCmd; + aURL.Path = ::rtl::OUString::createFromAscii(pSlot->GetUnoName()); + aCmd += aURL.Path; aURL.Complete = aCmd; + aURL.Main = aCmd; - Reference < XURLTransformer > xTrans( ::comphelper::getProcessServiceFactory()->createInstance( rtl::OUString::createFromAscii("com.sun.star.util.URLTransformer" )), UNO_QUERY ); - xTrans->parseStrict( aURL ); if ( !xDisp.is() ) xDisp = pImp->xProv->queryDispatch( aURL, ::rtl::OUString(), 0 ); -- cgit