summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 15:05:52 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 15:07:41 +0200
commit743f22045c4ec08c46c259fc0ba240194a391457 (patch)
treefaed42bb31c4ee767619eb5c3ebd4dec0a41fa03 /sdext
parent0c6ebe5d225d6a655f078977455cec6d0a3afa6e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/fileopendialog.cxx2
-rw-r--r--sdext/source/minimizer/informationdialog.cxx2
-rw-r--r--sdext/source/pdfimport/test/tests.cxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx4
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx4
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx14
6 files changed, 14 insertions, 14 deletions
diff --git a/sdext/source/minimizer/fileopendialog.cxx b/sdext/source/minimizer/fileopendialog.cxx
index 64d000edc8ac..c64105533135 100644
--- a/sdext/source/minimizer/fileopendialog.cxx
+++ b/sdext/source/minimizer/fileopendialog.cxx
@@ -108,7 +108,7 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
{
rtl::OUString sDocumentService;
rProperty.Value >>= sDocumentService;
- if ( sDocumentService.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.PresentationDocument")) )
+ if ( sDocumentService == "com.sun.star.presentation.PresentationDocument" )
bImpressFilter = sal_True;
else
j = aFilterProperties.getLength();
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx
index 09db8b223fbc..2b9e071b4cbd 100644
--- a/sdext/source/minimizer/informationdialog.cxx
+++ b/sdext/source/minimizer/informationdialog.cxx
@@ -398,7 +398,7 @@ sal_Bool InformationDialog::execute()
void OKActionListener::actionPerformed( const ActionEvent& rEvent )
throw ( com::sun::star::uno::RuntimeException )
{
- if ( rEvent.ActionCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("button")) )
+ if ( rEvent.ActionCommand == "button" )
{
mrInformationDialog.endExecute( sal_True );
}
diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index b73da1ddb133..ab4e5fcc811b 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -553,7 +553,7 @@ namespace
virtual uno::Any SAL_CALL getValueByName(rtl::OUString const& rName)
throw()
{
- if (rName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("/singletons/com.sun.star.deployment.PackageInformationProvider")))
+ if ( rName == "/singletons/com.sun.star.deployment.PackageInformationProvider" )
{
uno::Reference<deployment::XPackageInformationProvider> const xProvider(new PackageInformationProvider());
uno::Any aComponent;
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);