Kaydet (Commit) b1881e85 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Warn when getFileURLFromSystemPath() fails, not when it succeeds

Also, display the name that the call failed for in the warning message.

Change-Id: I0b6b7baca1d534b5bada5286b2b0e5b8e94f1832
üst 9b325647
...@@ -763,9 +763,9 @@ bool SfxMedium::IsStorage() ...@@ -763,9 +763,9 @@ bool SfxMedium::IsStorage()
{ {
OUString aURL; OUString aURL;
if ( osl::FileBase::getFileURLFromSystemPath( pImpl->m_aName, aURL ) if ( osl::FileBase::getFileURLFromSystemPath( pImpl->m_aName, aURL )
== osl::FileBase::E_None ) != osl::FileBase::E_None )
{ {
SAL_WARN( "sfx.doc", "Physical name not convertible!"); SAL_WARN( "sfx.doc", "Physical name '" << pImpl->m_aName << "' not convertible to file URL");
} }
pImpl->bIsStorage = SotStorage::IsStorageFile( aURL ) && !SotStorage::IsOLEStorage( aURL); pImpl->bIsStorage = SotStorage::IsStorageFile( aURL ) && !SotStorage::IsOLEStorage( aURL);
if ( !pImpl->bIsStorage ) if ( !pImpl->bIsStorage )
......
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