Kaydet (Commit) adb265b2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982309 Logically dead code

Change-Id: Id05614cf8c90d1c845876e8a6592df8420d57d47
üst e7da9d42
......@@ -190,7 +190,6 @@ OUString SfxFilter::GetTypeFromStorage(
throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
{
SfxFilterMatcher aMatcher;
const char* pType=0;
OUString aName;
if ( pFilterName )
{
......@@ -243,17 +242,7 @@ OUString SfxFilter::GetTypeFromStorage(
}
}
//TODO: do it without SfxFilter
//TODO/LATER: don't yield FilterName, should be done in FWK!
OUString aRet;
if ( pType )
{
aRet = OUString::createFromAscii(pType);
if ( pFilterName )
*pFilterName = aMatcher.GetFilter4EA( aRet )->GetName();
}
return aRet;
return OUString();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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