Kaydet (Commit) 7a2f07c4 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use just geParameter instead of hasParameter + getParameter

getParameter returns and empty string if the key is not found,
so we can just avoid searching twice for the same key.

Change-Id: Ic48debce05fe94d8e087b64bde5a589e54bfb616
üst e256519a
......@@ -2416,9 +2416,7 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro )
aMacroName = aName.getToken( 0, cTok, nIndex );
// get location
OUString aLocKey("location");
if ( xUrl->hasParameter( aLocKey ) )
aLocation = xUrl->getParameter( aLocKey );
aLocation = xUrl->getParameter( "location" );
}
BasicManager* pBasMgr = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment