summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-06-21 14:26:35 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-06-21 14:26:58 +0200
commitf8cd68bad6728a5402401a3b7235f7d5d22c0ce1 (patch)
tree3621921de825492f2724438901046d02b1218c56 /unodevtools
parent40befea0363918488b9bedbaf693e9c7b3b8e44e (diff)
cppcheck: Redundant checking of STL container
Change-Id: I83a8671e90431bbc4f41392f062d37c452b018ff
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/skeletoncommon.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletoncommon.cxx b/unodevtools/source/skeletonmaker/skeletoncommon.cxx
index 37af9d5c57a0..25679bcb33dc 100644
--- a/unodevtools/source/skeletonmaker/skeletoncommon.cxx
+++ b/unodevtools/source/skeletonmaker/skeletoncommon.cxx
@@ -274,23 +274,16 @@ void checkDefaultInterfaces(
const OUString & propertyhelper)
{
if ( services.empty() ) {
- if (interfaces.find("com.sun.star.lang.XServiceInfo") != interfaces.end())
- interfaces.erase("com.sun.star.lang.XServiceInfo");
+ interfaces.erase("com.sun.star.lang.XServiceInfo");
} else {
if (interfaces.find("com.sun.star.lang.XServiceInfo") == interfaces.end())
interfaces.insert("com.sun.star.lang.XServiceInfo");
}
if ( propertyhelper.equals("_") ) {
- if (interfaces.find("com.sun.star.beans.XPropertySet")
- != interfaces.end())
- interfaces.erase("com.sun.star.beans.XPropertySet");
- if (interfaces.find("com.sun.star.beans.XFastPropertySet")
- != interfaces.end())
- interfaces.erase("com.sun.star.beans.XFastPropertySet");
- if (interfaces.find("com.sun.star.beans.XPropertyAccess")
- != interfaces.end())
- interfaces.erase("com.sun.star.beans.XPropertyAccess");
+ interfaces.erase("com.sun.star.beans.XPropertySet");
+ interfaces.erase("com.sun.star.beans.XFastPropertySet");
+ interfaces.erase("com.sun.star.beans.XPropertyAccess");
}
}