summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-15 10:18:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-15 10:18:44 +0100
commitfe99ee368fef4059e187a81059679ca150161119 (patch)
tree7647d116d16e3cc5f5a6ab95fd9a6d86642e3604 /sw/source/ui
parent577e90091bc72eb72b1432611c82cbdaf18b557c (diff)
sw: Use appropriate OUString functions on string constants
Change-Id: I559d1e44d9096a2583af8e05468b3743ac210c6c
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx2
-rw-r--r--sw/source/ui/vba/vbaaddins.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
index 693bebab1be5..9adfbb84a758 100644
--- a/sw/source/ui/envelp/mailmrge.cxx
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -375,7 +375,7 @@ SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
if( !sUIName2.isEmpty() )
{
const sal_Int32 nFilter = m_pFilterLB->InsertEntry( sUIName2 );
- if( sFilter.equalsAscii("writer8") )
+ if( sFilter == "writer8" )
nODT = nFilter;
m_pFilterLB->SetEntryData( nFilter, new OUString( sFilter ) );
}
diff --git a/sw/source/ui/vba/vbaaddins.cxx b/sw/source/ui/vba/vbaaddins.cxx
index 0531edbf8512..29ae1c5eeb27 100644
--- a/sw/source/ui/vba/vbaaddins.cxx
+++ b/sw/source/ui/vba/vbaaddins.cxx
@@ -44,7 +44,7 @@ static uno::Reference< container::XIndexAccess > lcl_getAddinCollection( const u
for( sal_Int32 index = 0; index < nEntry; ++index )
{
OUString sUrl = sEntries[ index ];
- if( !xSFA->isFolder( sUrl ) && sUrl.endsWithIgnoreAsciiCaseAsciiL( ".dot", 4 ) )
+ if( !xSFA->isFolder( sUrl ) && sUrl.endsWithIgnoreAsciiCase( ".dot" ) )
{
maAddins.push_back( uno::Reference< word::XAddin >( new SwVbaAddin( xParent, xContext, sUrl, true ) ) );
}