summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx5
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx4
2 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index c84315985cb8..d99cb030ab03 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -794,10 +794,9 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
lDescriptor[nIndexOfFilterName].Value <<= OUString(pFilter->GetName());
}
- if ( pFilter )
- aTypeName = pFilter->GetTypeName();
- else
+ if (!pFilter)
aTypeName.Erase();
+
return aTypeName;
}
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index ac1f7d9c17d2..db4d7324334c 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -496,9 +496,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
lDescriptor[nIndexOfDocumentTitle].Value <<= aDocumentTitle;
}
- if ( pFilter )
- aTypeName = pFilter->GetTypeName();
- else
+ if (!pFilter)
aTypeName = OUString();
return aTypeName;