diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/cnttype/mcnttype.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/printer/cpdmgr.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/cupsmgr.cxx | 2 |
4 files changed, 5 insertions, 5 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 diff --git a/vcl/unx/generic/printer/cpdmgr.cxx b/vcl/unx/generic/printer/cpdmgr.cxx index 7dc17cede353..00023060b073 100644 --- a/vcl/unx/generic/printer/cpdmgr.cxx +++ b/vcl/unx/generic/printer/cpdmgr.cxx @@ -507,7 +507,7 @@ void CPDManager::initialize() std::unordered_map<OUString, Printer>::iterator it = m_aPrinters.begin(); while (it != m_aPrinters.end()) { - if (m_aCPDDestMap.find(it->first) != m_aCPDDestMap.end()) + if (m_aCPDDestMap.contains(it->first)) { ++it; continue; diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx index fa61a6052b20..87f2acc8d088 100644 --- a/vcl/unx/generic/printer/cupsmgr.cxx +++ b/vcl/unx/generic/printer/cupsmgr.cxx @@ -383,7 +383,7 @@ void CUPSManager::initialize() std::unordered_map< OUString, Printer >::iterator it = m_aPrinters.begin(); while(it != m_aPrinters.end()) { - if( m_aCUPSDestMap.find( it->first ) != m_aCUPSDestMap.end() ) + if( m_aCUPSDestMap.contains( it->first ) ) { ++it; continue; |