summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/cnttype/mcnttype.cxx2
-rw-r--r--vcl/source/window/builder.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/cnttype/mcnttype.cxx b/vcl/source/cnttype/mcnttype.cxx
index cc5facf17717..2c1ff0ed9a5f 100644
--- a/vcl/source/cnttype/mcnttype.cxx
+++ b/vcl/source/cnttype/mcnttype.cxx
@@ -53,7 +53,7 @@ css::uno::Sequence< OUString > SAL_CALL CMimeContentType::getParameters( )
sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName )
{
- return ( m_ParameterMap.end( ) != m_ParameterMap.find( aName.toAsciiLowerCase() ) );
+ return m_ParameterMap.contains( aName.toAsciiLowerCase() );
}
OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName )
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index df2df8235f68..b21d26bb5f1e 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1673,7 +1673,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OUString
}
else if (name == "GtkIconView")
{
- assert(rMap.find(u"model"_ustr) != rMap.end() && "GtkIconView must have a model");
+ assert(rMap.contains(u"model"_ustr) && "GtkIconView must have a model");
//window we want to apply the packing props for this GtkIconView to
VclPtr<vcl::Window> xWindowForPackingProps;
@@ -1696,7 +1696,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OUString
{
if (!isLegacy())
{
- assert(rMap.find(u"model"_ustr) != rMap.end() && "GtkTreeView must have a model");
+ assert(rMap.contains(u"model"_ustr) && "GtkTreeView must have a model");
}
//window we want to apply the packing props for this GtkTreeView to