diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:53:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:54:52 +0100 |
commit | a3f32769fc4bb23c64168b412dd10ec769a3854d (patch) | |
tree | 92bb435946dcfc422c9816bc05c150069a2da3c3 /editeng | |
parent | WaE: C4701: potentially uninitialized local variable 'nIdx' used (diff) | |
download | core-a3f32769fc4bb23c64168b412dd10ec769a3854d.tar.gz core-a3f32769fc4bb23c64168b412dd10ec769a3854d.zip |
Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.
Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 6 | ||||
-rw-r--r-- | editeng/source/items/paraitem.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index b05d481cc690..e838c4e38b29 100644 --- a/editeng/source/editeng/edtspell.cxx +++ b/editeng/source/editeng/edtspell.cxx @@ -652,7 +652,7 @@ sal_Bool EdtAutoCorrDoc::SetAttr(sal_Int32 nStt, sal_Int32 nEnd, { SfxItemPool* pPool = &mpEditEngine->GetEditDoc().GetItemPool(); while ( pPool->GetSecondaryPool() && - !pPool->GetName().startsWith("EditEngineItemPool") ) + pPool->GetName() != "EditEngineItemPool" ) { pPool = pPool->GetSecondaryPool(); diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index b5168f6f6944..515565cef199 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -158,13 +158,13 @@ EditPaM ImpEditEngine::ReadRTF( SvStream& rInput, EditSelection aSel ) // The SvRTF parser expects the Which-mapping passed on in the pool, not // dependent on a secondary. SfxItemPool* pPool = &aEditDoc.GetItemPool(); - while (pPool->GetSecondaryPool() && !pPool->GetName().startsWith("EditEngineItemPool")) - { + while (pPool->GetSecondaryPool() && pPool->GetName() != "EditEngineItemPool") + { pPool = pPool->GetSecondaryPool(); } - DBG_ASSERT(pPool && pPool->GetName().startsWith("EditEngineItemPool"), + DBG_ASSERT(pPool && pPool->GetName() == "EditEngineItemPool", "ReadRTF: no EditEnginePool!"); EditRTFParserRef xPrsr = new EditRTFParser(rInput, aSel, *pPool, pEditEngine); diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 8b1e59fa2665..3dab5b0d7cf7 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -1166,7 +1166,7 @@ SvStream& SvxTabStopItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const SfxItemPool *pPool = SfxItemPool::GetStoringPool(); const bool bStoreDefTabs = pPool - && pPool->GetName().startsWith("SWG") + && pPool->GetName() == "SWG" && ::IsDefaultItem( this ); const short nTabs = Count(); |