diff options
Diffstat (limited to 'sdext/source/presenter')
-rw-r--r-- | sdext/source/presenter/PresenterPaneBorderPainter.cxx | 4 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScreen.cxx | 4 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 14 |
3 files changed, 11 insertions, 11 deletions
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx index 689bb9d8b4d7..05051a2410cd 100644 --- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx +++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx @@ -873,9 +873,9 @@ RendererPaneStyle::RendererPaneStyle ( mnFontYOffset = mpFont->mnYOffset; } - if (sAnchor.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Left"))) + if ( sAnchor == "Left" ) meFontAnchor = AnchorLeft; - else if (sAnchor.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Right"))) + else if ( sAnchor == "Right" ) meFontAnchor = AnchorRight; else meFontAnchor = AnchorCenter; diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index ddcf16124c6f..0a0ee297a191 100644 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -150,7 +150,7 @@ Any SAL_CALL PresenterScreenJob::execute( const beans::NamedValue* p = Arguments.getConstArray(); for (i=0; i<c; ++i) { - if (p[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Environment"))) + if ( p[i].Name == "Environment" ) { p[i].Value >>= lEnv; break; @@ -162,7 +162,7 @@ Any SAL_CALL PresenterScreenJob::execute( p = lEnv.getConstArray(); for (i=0; i<c; ++i) { - if (p[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Model"))) + if ( p[i].Name == "Model" ) { p[i].Value >>= xModel; break; diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index 3a6aa83635b1..b6181bdc5868 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -697,19 +697,19 @@ void PresenterToolBar::ProcessEntry ( // Create new element. ::rtl::Reference<Element> pElement; - if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Button"))) + if ( sType == "Button" ) pElement = Button::Create(this); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("CurrentTimeLabel"))) + else if ( sType == "CurrentTimeLabel" ) pElement = CurrentTimeLabel::Create(this); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("PresentationTimeLabel"))) + else if ( sType == "PresentationTimeLabel" ) pElement = PresentationTimeLabel::Create(this); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("VerticalSeparator"))) + else if ( sType == "VerticalSeparator" ) pElement = ::rtl::Reference<Element>(new VerticalSeparator(this)); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("HorizontalSeparator"))) + else if ( sType == "HorizontalSeparator" ) pElement = ::rtl::Reference<Element>(new HorizontalSeparator(this)); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Label"))) + else if ( sType == "Label" ) pElement = ::rtl::Reference<Element>(new Label(this)); - else if (sType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ChangeOrientation"))) + else if ( sType == "ChangeOrientation" ) { mpCurrentContainerPart.reset(new ElementContainerPart()); maElementContainer.push_back(mpCurrentContainerPart); |