Kaydet (Commit) b149b043 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

ucbhelper::GetLocalFileURL does not use its arg.

üst 6cd581f2
...@@ -2346,7 +2346,7 @@ IMPL_LINK( MyWin, ToolBarHandler, ToolBox*, pToolBox ) ...@@ -2346,7 +2346,7 @@ IMPL_LINK( MyWin, ToolBarHandler, ToolBox*, pToolBox )
DBG_ASSERT(xManager.is(), DBG_ASSERT(xManager.is(),
"MyWin::ToolBarHandler(): Service lacks interface"); "MyWin::ToolBarHandler(): Service lacks interface");
rtl::OUString aURL(getLocalFileURL(xManager)); rtl::OUString aURL(getLocalFileURL());
String aText(RTL_CONSTASCII_USTRINGPARAM("Local file URL: ")); String aText(RTL_CONSTASCII_USTRINGPARAM("Local file URL: "));
aText += String(aURL); aText += String(aURL);
......
...@@ -48,17 +48,11 @@ namespace ucbhelper { ...@@ -48,17 +48,11 @@ namespace ucbhelper {
The result can be used as the rBaseURL parameter of The result can be used as the rBaseURL parameter of
ucb::getFileURLFromSystemPath(). ucb::getFileURLFromSystemPath().
@param rManager
A content provider manager. Must not be null.
@returns @returns
either a 'root' URL for the most 'local' file content provider, or an either a 'root' URL for the most 'local' file content provider, or an
empty string, if no such URL can meaningfully be constructed. empty string, if no such URL can meaningfully be constructed.
*/ */
UCBHELPER_DLLPUBLIC rtl::OUString getLocalFileURL( UCBHELPER_DLLPUBLIC rtl::OUString getLocalFileURL()
com::sun::star::uno::Reference<
com::sun::star::ucb::XContentProviderManager > const &
rManager)
SAL_THROW((com::sun::star::uno::RuntimeException)); SAL_THROW((com::sun::star::uno::RuntimeException));
//============================================================================ //============================================================================
......
...@@ -47,9 +47,7 @@ namespace ucbhelper { ...@@ -47,9 +47,7 @@ namespace ucbhelper {
//============================================================================ //============================================================================
rtl::OUString rtl::OUString
getLocalFileURL( getLocalFileURL() SAL_THROW((uno::RuntimeException))
uno::Reference< ucb::XContentProviderManager > const &)
SAL_THROW((uno::RuntimeException))
{ {
// If there were more file systems than just "file:///" (e.g., the obsolete // If there were more file systems than just "file:///" (e.g., the obsolete
// "vnd.sun.star.wfs:///"), this code should query all relevant UCPs for // "vnd.sun.star.wfs:///"), this code should query all relevant UCPs for
......
...@@ -117,7 +117,7 @@ bool LocalFileHelper::ConvertPhysicalNameToURL(const rtl::OUString& rName, rtl:: ...@@ -117,7 +117,7 @@ bool LocalFileHelper::ConvertPhysicalNameToURL(const rtl::OUString& rName, rtl::
try try
{ {
rtl::OUString aBase( ::ucbhelper::getLocalFileURL( xManager ) ); rtl::OUString aBase( ::ucbhelper::getLocalFileURL() );
rReturn = ::ucbhelper::getFileURLFromSystemPath( xManager, aBase, rName ); rReturn = ::ucbhelper::getFileURLFromSystemPath( xManager, aBase, rName );
} }
catch (const ::com::sun::star::uno::RuntimeException&) catch (const ::com::sun::star::uno::RuntimeException&)
...@@ -145,7 +145,7 @@ bool LocalFileHelper::ConvertURLToPhysicalName(const rtl::OUString& rName, rtl:: ...@@ -145,7 +145,7 @@ bool LocalFileHelper::ConvertURLToPhysicalName(const rtl::OUString& rName, rtl::
try try
{ {
INetURLObject aObj( rName ); INetURLObject aObj( rName );
INetURLObject aLocal( ::ucbhelper::getLocalFileURL( xManager ) ); INetURLObject aLocal( ::ucbhelper::getLocalFileURL() );
if ( aObj.GetProtocol() == aLocal.GetProtocol() ) if ( aObj.GetProtocol() == aLocal.GetProtocol() )
rReturn = ::ucbhelper::getSystemPathFromFileURL( xManager, rName ); rReturn = ::ucbhelper::getSystemPathFromFileURL( xManager, rName );
} }
......
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