summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-08-01 08:54:45 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-08-01 08:54:45 +0000
commit4e1917e355c8646f754d4ae0ac566943c743d16b (patch)
tree4d214709a118e909010dce01d61a1b1524065d31 /sfx2
parentc0e8380206604b412c25102cac5989259bb33fa8 (diff)
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
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx13
1 files changed, 7 insertions, 6 deletions
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 );