summaryrefslogtreecommitdiff
path: root/vcl/source/helper
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 13:13:21 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 13:13:21 -0500
commit081dc5afdef4a84d60a57ff549f70071b1d26eda (patch)
tree4afae2b9ff996bfc0b87db8f7679c2940fa0121a /vcl/source/helper
parentb6dc9a8fb8ab96fdbc0ad59f13f92c573aab5cb6 (diff)
targeted string re-work
Change-Id: I0ca912c8b7e485f5ec78422150aedc72ca6df32f
Diffstat (limited to 'vcl/source/helper')
-rw-r--r--vcl/source/helper/canvasbitmap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/helper/canvasbitmap.cxx b/vcl/source/helper/canvasbitmap.cxx
index 77a655118d53..a7aebc2d82cc 100644
--- a/vcl/source/helper/canvasbitmap.cxx
+++ b/vcl/source/helper/canvasbitmap.cxx
@@ -685,7 +685,7 @@ sal_Bool SAL_CALL VclCanvasBitmap::getIndex( uno::Sequence< double >& o_entry, s
(m_pBmpAcc->HasPalette() ? m_pBmpAcc->GetPaletteEntryCount() : 0 ) : 0 );
OSL_ENSURE(nIndex >= 0 && nIndex < nCount,"Palette index out of range");
if( nIndex < 0 || nIndex >= nCount )
- throw lang::IndexOutOfBoundsException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Palette index out of range")),
+ throw lang::IndexOutOfBoundsException(::rtl::OUString("Palette index out of range"),
static_cast<rendering::XBitmapPalette*>(this));
const BitmapColor aCol = m_pBmpAcc->GetPaletteColor(sal::static_int_cast<sal_uInt16>(nIndex));
@@ -707,7 +707,7 @@ sal_Bool SAL_CALL VclCanvasBitmap::setIndex( const uno::Sequence< double >&, sal
OSL_ENSURE(nIndex >= 0 && nIndex < nCount,"Palette index out of range");
if( nIndex < 0 || nIndex >= nCount )
- throw lang::IndexOutOfBoundsException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Palette index out of range")),
+ throw lang::IndexOutOfBoundsException(::rtl::OUString("Palette index out of range"),
static_cast<rendering::XBitmapPalette*>(this));
return sal_False; // read-only implementation