summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 09:24:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 10:12:31 +0200
commitd7e06e46acc2ee17101cef63e59b9f5efcbfab14 (patch)
tree7f2ee4381babadafaaaf94e1ca210e1d98e5aa14 /sdext
parente47fda7d4759f4ac911c882881dba1eee539726c (diff)
use more OUString::operator== in scaddins..sdext
Change-Id: I8bc5c925f940283bc54698bbcba77efcca883273 Reviewed-on: https://gerrit.libreoffice.org/39937 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/pppoptimizeruno.cxx2
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx4
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx4
-rw-r--r--sdext/source/presenter/PresenterTheme.cxx4
-rw-r--r--sdext/source/presenter/PresenterViewFactory.cxx12
5 files changed, 13 insertions, 13 deletions
diff --git a/sdext/source/minimizer/pppoptimizeruno.cxx b/sdext/source/minimizer/pppoptimizeruno.cxx
index 4ad3a8592191..874010a8001b 100644
--- a/sdext/source/minimizer/pppoptimizeruno.cxx
+++ b/sdext/source/minimizer/pppoptimizeruno.cxx
@@ -39,7 +39,7 @@ extern "C"
if( pServiceManager )
{
Reference< XSingleComponentFactory > xFactory;
- if( aImplName.equals( PPPOptimizerDialog_getImplementationName() ) )
+ if( aImplName == PPPOptimizerDialog_getImplementationName() )
{
xFactory = createSingleComponentFactory(
PPPOptimizerDialog_createInstance,
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 7e2bed7b7889..541aed855a2d 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -132,7 +132,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
for(int i=0; i< elem.Text.getLength(); i++)
{
OUString strToken= str.copy(i,1) ;
- if( strSpace.equals(strToken) || strNbSpace.equals(strToken))
+ if( strSpace == strToken || strNbSpace == strToken )
{
aProps[ "text:c" ] = "1";
m_rEmitContext.rEmitter.beginTag( "text:s", aProps );
@@ -140,7 +140,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
}
else
{
- if( tabSpace.equals(strToken) )
+ if( tabSpace == strToken )
{
m_rEmitContext.rEmitter.beginTag( "text:tab", aProps );
m_rEmitContext.rEmitter.endTag( "text:tab");
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx
index e1fa98ce43aa..ababf72265ae 100644
--- a/sdext/source/presenter/PresenterNotesView.cxx
+++ b/sdext/source/presenter/PresenterNotesView.cxx
@@ -238,7 +238,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
Reference<lang::XServiceName> xServiceName (
xIndexAccess->getByIndex(nIndex), UNO_QUERY);
if (xServiceName.is()
- && xServiceName->getServiceName().equals(sNotesShapeName))
+ && xServiceName->getServiceName() == sNotesShapeName)
{
Reference<text::XTextRange> xText (xServiceName, UNO_QUERY);
if (xText.is())
@@ -253,7 +253,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
if (xShapeDescriptor.is())
{
OUString sType (xShapeDescriptor->getShapeType());
- if (sType.equals(sNotesShapeName) || sType.equals(sTextShapeName))
+ if (sType == sNotesShapeName || sType == sTextShapeName)
{
Reference<text::XTextRange> xText (
xIndexAccess->getByIndex(nIndex), UNO_QUERY);
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx
index 4bdd60676853..9fdd24a0bb18 100644
--- a/sdext/source/presenter/PresenterTheme.cxx
+++ b/sdext/source/presenter/PresenterTheme.cxx
@@ -863,7 +863,7 @@ void PaneStyleContainer::ProcessPaneStyle(
// Find parent style.
::std::vector<SharedPaneStyle>::const_iterator iStyle;
for (iStyle=mStyles.begin(); iStyle!=mStyles.end(); ++iStyle)
- if ((*iStyle)->msStyleName.equals(sParentStyleName))
+ if ((*iStyle)->msStyleName == sParentStyleName)
{
pStyle->mpParentStyle = *iStyle;
break;
@@ -987,7 +987,7 @@ void ViewStyleContainer::ProcessViewStyle(
// Find parent style.
::std::vector<SharedViewStyle>::const_iterator iStyle;
for (iStyle=mStyles.begin(); iStyle!=mStyles.end(); ++iStyle)
- if ((*iStyle)->msStyleName.equals(sParentStyleName))
+ if ((*iStyle)->msStyleName == sParentStyleName)
{
pStyle->mpParentStyle = *iStyle;
pStyle->mpFont = (*iStyle)->mpFont;
diff --git a/sdext/source/presenter/PresenterViewFactory.cxx b/sdext/source/presenter/PresenterViewFactory.cxx
index 2cdb935ba5e6..c471da4d71ab 100644
--- a/sdext/source/presenter/PresenterViewFactory.cxx
+++ b/sdext/source/presenter/PresenterViewFactory.cxx
@@ -326,27 +326,27 @@ Reference<XResource> PresenterViewFactory::CreateView(
{
const OUString sResourceURL (rxViewId->getResourceURL());
- if (sResourceURL.equals(msCurrentSlidePreviewViewURL))
+ if (sResourceURL == msCurrentSlidePreviewViewURL)
{
xView = CreateSlideShowView(rxViewId);
}
- else if (sResourceURL.equals(msNotesViewURL))
+ else if (sResourceURL == msNotesViewURL)
{
xView = CreateNotesView(rxViewId);
}
- else if (sResourceURL.equals(msNextSlidePreviewViewURL))
+ else if (sResourceURL == msNextSlidePreviewViewURL)
{
xView = CreateSlidePreviewView(rxViewId, rxAnchorPane);
}
- else if (sResourceURL.equals(msToolBarViewURL))
+ else if (sResourceURL == msToolBarViewURL)
{
xView = CreateToolBarView(rxViewId);
}
- else if (sResourceURL.equals(msSlideSorterURL))
+ else if (sResourceURL == msSlideSorterURL)
{
xView = CreateSlideSorterView(rxViewId);
}
- else if (sResourceURL.equals(msHelpViewURL))
+ else if (sResourceURL == msHelpViewURL)
{
xView = CreateHelpView(rxViewId);
}