diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-04-13 14:40:10 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-04-13 20:47:55 -0300 |
commit | 0b1a0cf3c87d90d0c86ef4173706ff4558f24e84 (patch) | |
tree | 22c037c04748fb5f77ca68cb4c1cad0b4e30f785 /sd/source/ui/presenter/PresenterCanvas.cxx | |
parent | 96f9300af6931848eff2951a9a58ef76714352fa (diff) |
More RTL_CONSTASCII_USTRINGPARAM removals
Diffstat (limited to 'sd/source/ui/presenter/PresenterCanvas.cxx')
-rw-r--r-- | sd/source/ui/presenter/PresenterCanvas.cxx | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/sd/source/ui/presenter/PresenterCanvas.cxx b/sd/source/ui/presenter/PresenterCanvas.cxx index e8044e6d5f50..8a8672778161 100644 --- a/sd/source/ui/presenter/PresenterCanvas.cxx +++ b/sd/source/ui/presenter/PresenterCanvas.cxx @@ -63,7 +63,7 @@ Reference<XInterface> SAL_CALL PresenterCanvas_createInstance ( ::rtl::OUString PresenterCanvas_getImplementationName (void) throw(RuntimeException) { - return OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterCanvasFactory")); + return OUString("com.sun.star.comp.Draw.PresenterCanvasFactory"); } @@ -72,8 +72,7 @@ Reference<XInterface> SAL_CALL PresenterCanvas_createInstance ( Sequence<rtl::OUString> SAL_CALL PresenterCanvas_getSupportedServiceNames (void) throw (RuntimeException) { - static const ::rtl::OUString sServiceName( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.rendering.Canvas"))); + static const ::rtl::OUString sServiceName("com.sun.star.rendering.Canvas"); return Sequence<rtl::OUString>(&sServiceName, 1); } @@ -231,24 +230,21 @@ void SAL_CALL PresenterCanvas::initialize ( if ( ! (rArguments[2] >>= mxSharedWindow)) { - throw lang::IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterCanvas: invalid shared window")), + throw lang::IllegalArgumentException("PresenterCanvas: invalid shared window", static_cast<XWeak*>(this), 1); } if ( ! (rArguments[3] >>= mxSharedCanvas)) { - throw lang::IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterCanvas: invalid shared canvas")), + throw lang::IllegalArgumentException("PresenterCanvas: invalid shared canvas", static_cast<XWeak*>(this), 2); } if ( ! (rArguments[4] >>= mxWindow)) { - throw lang::IllegalArgumentException( - OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterCanvas: invalid window")), + throw lang::IllegalArgumentException("PresenterCanvas: invalid window", static_cast<XWeak*>(this), 3); } @@ -268,8 +264,7 @@ void SAL_CALL PresenterCanvas::initialize ( } else { - throw RuntimeException( - OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterCanvas: invalid number of arguments")), + throw RuntimeException("PresenterCanvas: invalid number of arguments", static_cast<XWeak*>(this)); } } @@ -1060,9 +1055,7 @@ void PresenterCanvas::ThrowIfDisposed (void) { if (rBHelper.bDisposed || rBHelper.bInDispose || ! mxSharedCanvas.is()) { - throw lang::DisposedException ( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( - "PresenterCanvas object has already been disposed")), + throw lang::DisposedException ("PresenterCanvas object has already been disposed", static_cast<uno::XWeak*>(this)); } } @@ -1215,9 +1208,7 @@ void PresenterCustomSprite::ThrowIfDisposed (void) { if (rBHelper.bDisposed || rBHelper.bInDispose || ! mxSprite.is()) { - throw lang::DisposedException ( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( - "PresenterCustomSprite object has already been disposed")), + throw lang::DisposedException ("PresenterCustomSprite object has already been disposed", static_cast<uno::XWeak*>(this)); } } |