From d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 Mon Sep 17 00:00:00 2001 From: Elton Chung Date: Sun, 19 Feb 2012 16:59:40 +0400 Subject: Get rid of size() == 0 --- shell/source/win32/simplemail/senddoc.cxx | 4 ++-- shell/source/win32/simplemail/smplmailclient.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx index 49ae9d848f01..54169e581652 100644 --- a/shell/source/win32/simplemail/senddoc.cxx +++ b/shell/source/win32/simplemail/senddoc.cxx @@ -111,7 +111,7 @@ void addRecipient( /** @internal */ void initRecipientList(MapiRecipientList_t* pMapiRecipientList) { - OSL_ASSERT(pMapiRecipientList->size() == 0); + OSL_ASSERT(pMapiRecipientList->empty()); // add to recipients StringListIterator_t iter = gTo.begin(); @@ -135,7 +135,7 @@ void initRecipientList(MapiRecipientList_t* pMapiRecipientList) /** @internal */ void initAttachementList(MapiAttachmentList_t* pMapiAttachmentList) { - OSL_ASSERT(pMapiAttachmentList->size() == 0); + OSL_ASSERT(pMapiAttachmentList->empty()); StringListIterator_t iter = gAttachments.begin(); StringListIterator_t iter_end = gAttachments.end(); diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx index 09ab23f70553..4b70c8a62627 100644 --- a/shell/source/win32/simplemail/smplmailclient.cxx +++ b/shell/source/win32/simplemail/smplmailclient.cxx @@ -186,7 +186,7 @@ void CSmplMailClient::assembleCommandLine( const Reference& xSimpleMailMessage, sal_Int32 aFlag, StringList_t& rCommandArgs) { - OSL_ENSURE(rCommandArgs.size() == 0, "Provided command argument buffer not empty"); + OSL_ENSURE(rCommandArgs.empty(), "Provided command argument buffer not empty"); rtl::OUString to = xSimpleMailMessage->getRecipient(); if (to.getLength() > 0) -- cgit