summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /shell
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/simplemail/senddoc.cxx4
-rw-r--r--shell/source/win32/simplemail/smplmailclient.cxx2
2 files changed, 3 insertions, 3 deletions
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>& 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)