diff options
Diffstat (limited to 'svtools/source/misc/openfiledroptargetlistener.cxx')
-rw-r--r-- | svtools/source/misc/openfiledroptargetlistener.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/misc/openfiledroptargetlistener.cxx b/svtools/source/misc/openfiledroptargetlistener.cxx index efbd8b6e2dc8..8846171c1475 100644 --- a/svtools/source/misc/openfiledroptargetlistener.cxx +++ b/svtools/source/misc/openfiledroptargetlistener.cxx @@ -33,9 +33,6 @@ #include <osl/file.hxx> #include <vcl/svapp.hxx> -// Create a new task or recycle an existing one -const char SPECIALTARGET_DEFAULT[] = "_default"; - OpenFileDropTargetListener::OpenFileDropTargetListener( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XFrame >& xFrame ) : m_xContext ( xContext ) @@ -209,7 +206,8 @@ void OpenFileDropTargetListener::implts_OpenFile( const OUString& rFilePath ) xParser->parseStrict(aURL); css::uno::Reference < css::frame::XDispatchProvider > xProvider( xTargetFrame, css::uno::UNO_QUERY ); - css::uno::Reference< css::frame::XDispatch > xDispatcher = xProvider->queryDispatch( aURL, SPECIALTARGET_DEFAULT, 0 ); + // Create a new task or recycle an existing one + css::uno::Reference< css::frame::XDispatch > xDispatcher = xProvider->queryDispatch( aURL, "_default", 0 ); if ( xDispatcher.is() ) xDispatcher->dispatch( aURL, css::uno::Sequence < css::beans::PropertyValue >() ); } |