diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-11 10:06:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-11 10:07:08 +0200 |
commit | 776a3f14f2d987312b926ebc1ad09321a3a87f0d (patch) | |
tree | 09be8f37156fb9147e306dbd27d5dfa8e282c43f /xmloff | |
parent | f60e521f24863643c7befed7f84db7d659c3c547 (diff) |
convert expressions like 'size() == 0' to 'empty()'
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/RDFaImportHelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx index fe4a435d20d2..ac2738a1aa3c 100644 --- a/xmloff/source/core/RDFaImportHelper.cxx +++ b/xmloff/source/core/RDFaImportHelper.cxx @@ -358,7 +358,7 @@ void RDFaInserter::InsertRDFaEntry( // compiles on unxsoli4, unxlngi6, but not wntsci12 // ::std::not1( ::std::mem_fun_ref(&uno::Reference<rdf::XURI>::is)) ); - if (!predicates.size()) + if (predicates.empty()) { return; // invalid } @@ -413,7 +413,7 @@ RDFaImportHelper::ParseRDFa( } const ::std::vector< OUString > properties( reader.ReadCURIEs(i_rProperty) ); - if (!properties.size()) { + if (properties.empty()) { return std::shared_ptr<ParsedRDFaAttributes>(); } const OUString datatype( !i_rDatatype.isEmpty() |