diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 22:43:34 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 22:43:34 -0500 |
commit | de0c09bb427e0206289365b83ddde02405db5ace (patch) | |
tree | c933c2ec3cb85830ed71b7ac325e509571150b4e /shell/source/cmdmail | |
parent | e6adc90c231588349ce7d8c1abc5fcb446f61706 (diff) |
targeted string re-work
Change-Id: I6eb2242506ef2d230770e513579caf4455ec37d5
Diffstat (limited to 'shell/source/cmdmail')
-rw-r--r-- | shell/source/cmdmail/cmdmailmsg.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/source/cmdmail/cmdmailmsg.cxx b/shell/source/cmdmail/cmdmailmsg.cxx index 2a2bb8a8bd6f..60e3439c9a43 100644 --- a/shell/source/cmdmail/cmdmailmsg.cxx +++ b/shell/source/cmdmail/cmdmailmsg.cxx @@ -185,7 +185,7 @@ Any SAL_CALL CmdMailMsg::getByName( const OUString& aName ) else if( 0 == aName.compareToAscii( "attachment" ) && m_Attachments.getLength() ) return makeAny( m_Attachments ); - throw NoSuchElementException( OUString(RTL_CONSTASCII_USTRINGPARAM("key not found: ")) + aName, + throw NoSuchElementException( OUString("key not found: ") + aName, static_cast < XNameAccess * > (this) ); } @@ -200,22 +200,22 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( ) Sequence< OUString > aRet( 6 ); if( !m_aOriginator.isEmpty() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("from")); + aRet[nItems++] = OUString("from"); if( !m_aRecipient.isEmpty() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("to")); + aRet[nItems++] = OUString("to"); if( m_CcRecipients.getLength() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("cc")); + aRet[nItems++] = OUString("cc"); if( m_BccRecipients.getLength() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("bcc")); + aRet[nItems++] = OUString("bcc"); if( !m_aSubject.isEmpty() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("subject")); + aRet[nItems++] = OUString("subject"); if( m_Attachments.getLength() ) - aRet[nItems++] = OUString(RTL_CONSTASCII_USTRINGPARAM("attachment")); + aRet[nItems++] = OUString("attachment"); aRet.realloc( nItems ); return aRet; |