diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-05-12 11:57:18 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-05-12 11:57:38 +0200 |
commit | e13bd0cfc7cd395baa125fff86171d030be71f8c (patch) | |
tree | d9e0d0895d53309b2c76c681fd086636b2a07f4a | |
parent | 0037c288a15423d800d4df311741cc77411663df (diff) |
Fix possible inefficient checking for variables emptiness
Change-Id: I95a6784d5448b63b0cdde436484915692f8633be
-rw-r--r-- | dbaccess/source/filter/xml/xmlDataSourceSetting.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlControlProperty.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx b/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx index b9c779a07d25..031690515fae 100644 --- a/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx +++ b/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx @@ -73,7 +73,7 @@ OXMLDataSourceSetting::OXMLDataSourceSetting( ODBFilter& rImport { // needs to be translated into a ::com::sun::star::uno::Type static std::map< OUString, css::uno::Type > s_aTypeNameMap; - if (!s_aTypeNameMap.size()) + if (s_aTypeNameMap.empty()) { s_aTypeNameMap[GetXMLToken( XML_BOOLEAN)] = ::getBooleanCppuType(); s_aTypeNameMap[GetXMLToken( XML_FLOAT)] = ::getCppuType( static_cast< double* >(NULL) ); diff --git a/reportdesign/source/filter/xml/xmlControlProperty.cxx b/reportdesign/source/filter/xml/xmlControlProperty.cxx index 7d4ec150a661..6509da4a7407 100644 --- a/reportdesign/source/filter/xml/xmlControlProperty.cxx +++ b/reportdesign/source/filter/xml/xmlControlProperty.cxx @@ -86,7 +86,7 @@ OXMLControlProperty::OXMLControlProperty( ORptFilter& rImport { // needs to be translated into a ::com::sun::star::uno::Type static std::map< OUString, css::uno::Type > s_aTypeNameMap; - if (!s_aTypeNameMap.size()) + if (s_aTypeNameMap.empty()) { s_aTypeNameMap[GetXMLToken( XML_BOOLEAN)] = ::getBooleanCppuType(); s_aTypeNameMap[GetXMLToken( XML_FLOAT)] = ::getCppuType( static_cast< double* >(NULL) ); |